[logback-user] Problem with Logging in Linux

Oliver Zemann oliver.zemann at gmail.com
Mon Aug 27 10:39:43 CEST 2012


The problem is that the software is running productive on customer
side, so there is no way to just deinstall the application and
reinstall it...

* What version of logback and slf4j are you using?
logback 1.0.6 (classic and core), slf4j-api 1.6.5

* Which flavor (and version) of Linux are you running?
CentOS 5.8 and 6.3

* Does the same problem occur when you try your logback config in a simple
 HelloWorld app (outside of install4j)?
Just tried it with creating a standalone jar from maven
(jar-with-dependencies) and its working as expected but its embedded
now. will check this in a few moments.

Regards,
Oli

2012/8/27 Thorbjørn Ravn Andersen <thunderaxiom at hotmail.com>:
> Have you enabled automatic printing of status messages in case of warming or
> errors?
>
>
>
> (see
> http://logback.qos.ch/manual/configuration.html#automaticStatusPrinting)
>
>
>
> It will go to your console.
>
>
>
> From: logback-user-bounces at qos.ch [mailto:logback-user-bounces at qos.ch] On
> Behalf Of Tony Trinh
> Sent: 25. august 2012 23:57
> To: logback users list
> Subject: Re: [logback-user] Problem with Logging in Linux
>
>
>
> On Fri, Aug 24, 2012 at 6:52 AM, Oliver Zemann <oliver.zemann at gmail.com>
> wrote:
>
> Hi, i have the absolut identical file for Windows which works as
> expected (logging), but not for linux:
>
> http://rifers.org/paste/show/1801
>
> There is just no logging - i started everything as root. Even when i
> use the FileAppender with its file name property set to "somelog.log"
> or "/root/somelog.log" it just saves nothing and i have no idea why.
>
> I used updatedb && locate to find a file called like this but there
> was nothing. Also lsof with a grep find nothing opened. So it is
> really not logging.
>
> Regards,
> Oli
>
>
>
> Your config for the RollingFileAppender is missing the <file> element. The
> manual contains a good example of all the necessary elements [1]. logback
> should print a warning in the debug output for this.
>
>
>
> It would be helpful if you provided additional details to reproduce the
> problem:
>
>
>
>  * What version of logback and slf4j are you using?
>
>  * Which flavor (and version) of Linux are you running?
>
>  * Does the same problem occur when you try your logback config in a simple
> HelloWorld app (outside of install4j)?
>
>
>
> FYI, your logback config works (writes to a file) for me in Android.
>
>
>
> It looks like Install4j supports a console [2], when running  the installer
> with "-c". It might be worth seeing if logback's debug-output prints in that
> console.
>
>
>
> [1]: http://logback.qos.ch/manual/appenders.html#logback-RollingTimeBased
>
> [2]: http://www.ej-technologies.com/products/install4j/whatsnew4.html
>
>
>
>
> _______________________________________________
> Logback-user mailing list
> Logback-user at qos.ch
> http://mailman.qos.ch/mailman/listinfo/logback-user


More information about the Logback-user mailing list