Pointing logback at a symbolic soft link

Loback doesn't seem to be able to see the file, it just carries on like there was no config file. And because of the debug system, I get no debug information. Can logback be pointed at a soft symbolic link file? ----- ___________________________ http://stubbisms.wordpress.com http://stubbisms.wordpress.com -- View this message in context: http://old.nabble.com/Pointing-logback-at-a-symbolic-soft-link-tp34863570p34... Sent from the Logback User mailing list archive at Nabble.com.

On 06.01.2013 01:20, Antony Stubbs wrote:
Loback doesn't seem to be able to see the file, it just carries on like there was no config file. And because of the debug system, I get no debug information.
Can logback be pointed at a soft symbolic link file?
Hi Antony, Symbolic link file is just a file, so I don't see why logback could not read its config file from a symbolic link. To see internal status messages, I suggest you start your app by defining the "logback.statusListenerClass" system property as follows: java \ -Dlogback.statusListenerClass=ch.qos.logback.core.status.OnConsoleStatusListener ... HTH, -- Ceki 65% of statistics are made up on the spot

Thanks, that doesn't appear to do anything. Nothing is printed to std out. Even without trying to point logback at any config files. Ceki Gulcu wrote:
On 06.01.2013 01:20, Antony Stubbs wrote:
Loback doesn't seem to be able to see the file, it just carries on like there was no config file. And because of the debug system, I get no debug information.
Can logback be pointed at a soft symbolic link file?
Hi Antony,
Symbolic link file is just a file, so I don't see why logback could not read its config file from a symbolic link. To see internal status messages, I suggest you start your app by defining the "logback.statusListenerClass" system property as follows:
java \ -Dlogback.statusListenerClass=ch.qos.logback.core.status.OnConsoleStatusListener ...
HTH,
-- Ceki 65% of statistics are made up on the spot _______________________________________________ Logback-user mailing list Logback-user@qos.ch http://mailman.qos.ch/mailman/listinfo/logback-user
----- ___________________________ http://stubbisms.wordpress.com http://stubbisms.wordpress.com -- View this message in context: http://old.nabble.com/Pointing-logback-at-a-symbolic-soft-link-tp34863570p34... Sent from the Logback User mailing list archive at Nabble.com.

On 07.01.2013 23:00, Antony Stubbs wrote:
Thanks, that doesn't appear to do anything. Nothing is printed to std out. Even without trying to point logback at any config files.
I've successfully tested the following command: java \ -Dlogback.statusListenerClass=ch.qos.logback.core.status.OnConsoleStatusListener\ chapters.introduction.HelloWorld1 Here is the output: 23:36:42,042 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback.groovy] 23:36:42,054 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback-test.xml] 23:36:42,054 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback.xml] 23:36:42,055 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Setting up default configuration. 23:36:42.091 [main] DEBUG chapters.introduction.HelloWorld1 - Hello world. The HelloWorld1 application [1] simply invokes the SLF4J API. Which version of logback are you using? Is logback being picked up by SLF4J? [1] http://logback.qos.ch/xref/chapters/introduction/HelloWorld1.html -- Ceki 65% of statistics are made up on the spot

Hmm, maybe it was a bad link before, seems to be working now. Ceki Gulcu wrote:
On 07.01.2013 23:00, Antony Stubbs wrote:
Thanks, that doesn't appear to do anything. Nothing is printed to std out. Even without trying to point logback at any config files.
I've successfully tested the following command:
java \ -Dlogback.statusListenerClass=ch.qos.logback.core.status.OnConsoleStatusListener\ chapters.introduction.HelloWorld1
Here is the output:
23:36:42,042 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback.groovy] 23:36:42,054 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback-test.xml] 23:36:42,054 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback.xml] 23:36:42,055 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Setting up default configuration. 23:36:42.091 [main] DEBUG chapters.introduction.HelloWorld1 - Hello world.
The HelloWorld1 application [1] simply invokes the SLF4J API.
Which version of logback are you using? Is logback being picked up by SLF4J?
[1] http://logback.qos.ch/xref/chapters/introduction/HelloWorld1.html -- Ceki 65% of statistics are made up on the spot _______________________________________________ Logback-user mailing list Logback-user@qos.ch http://mailman.qos.ch/mailman/listinfo/logback-user
----- ___________________________ http://stubbisms.wordpress.com http://stubbisms.wordpress.com -- View this message in context: http://old.nabble.com/Pointing-logback-at-a-symbolic-soft-link-tp34863570p34... Sent from the Logback User mailing list archive at Nabble.com.
participants (2)
-
Antony Stubbs
-
ceki