-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Simon,
On 12/21/11 2:55 AM, Simon wrote:
> It is not really a hack in log4j configuration to redirect the logs
> in stdout, as it is exactly what does the ConsoleAppender by
> default...
True, log4j supports log-to-console. It's only a hack because o
2011/12/21 Konstantin Kolinko :
> 2011/12/20 Christopher Schultz :
>> -BEGIN PGP SIGNED MESSAGE-
>> Hash: SHA1
>>
>> Simon,
>>
>> On 12/19/11 11:54 AM, Simon wrote:
>>> log4j.appender.file.File=/var/log/webapp.log
>>>
>>> Thus, there is 3 identical webapps logging into the same log file
>>>
2011/12/20 Christopher Schultz :
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> Simon,
>
> On 12/19/11 11:54 AM, Simon wrote:
>> log4j.appender.file.File=/var/log/webapp.log
>>
>> Thus, there is 3 identical webapps logging into the same log file
>> simultaneously :
>
> It's more likely that
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Simon,
On 12/19/11 11:54 AM, Simon wrote:
> log4j.appender.file.File=/var/log/webapp.log
>
> Thus, there is 3 identical webapps logging into the same log file
> simultaneously :
It's more likely that the last one wins: the first 2 logs was probably
Hi,
I will use the variable substitution solution by changing the
log4j.properties file :
log4j.logFileSuffix=...
log4j.appender.file.File=/var/log/webapp-${logSuffix}.log
The value will be overriden by each instances with
-Dlog4j.logFileSuffix=whatever
Thank you for your help !
Regards,
Simon
On Mon, 2011-12-19 at 09:05 -0800, Leon Rosenberg wrote:
> Hello,
>
> you can specify the logoutput as relative path:
> instead of
> log4j.appender.file.File=/var/log/webapp.log
> to
> log4j.appender.file.File=logs/webapp.log
> and link the local file to the desired destination.
>
+1
or if you
Hello,
you can specify the logoutput as relative path:
instead of
log4j.appender.file.File=/var/log/webapp.log
to
log4j.appender.file.File=logs/webapp.log
and link the local file to the desired destination.
regards
Leon
On Mon, Dec 19, 2011 at 5:54 PM, Simon wrote:
> Hi,
>
> Our webapp is packa
Hi,
Our webapp is packaged with the log4j framework (1.2.16) and a log4j
configuration that redirect all logs to a file on the server
filesystem. This log file is rotated when it reaches 50M.
Here is the configuration detail :
log4j.rootLogger=INFO, file
log4j.appender.file=org.apache.log4j.Roll