On Wed, Oct 9, 2013 at 7:42 AM, Dariusz Luksza <
dariusz...@gmail.com> wrote:
> On Thu, Oct 3, 2013 at 10:43 AM, David Ostrovsky
> <
david.o...@gmail.com> wrote:
>>
>>
>> Am Mittwoch, 2. Oktober 2013 18:51:19 UTC+2 schrieb Shawn Pearce:
>>>
>>> Its not currently customizable, but maybe someone wants to upload a
>>> change to add a variable in gerrit.config that points to a local
>>> log4j.properties file the server will load and honor, or just teach
>>> the server to look for the file in etc/, or something... ? :-)
>>
>>
>>
https://gerrit-review.googlesource.com/50443
>
> We just discovered that 'javaOptions = -Dlog4j.configuration' works
> when is NOT run as a service.
>
> It seams that there is a difference in log system initialization
> depends on startup mode. When gerrit is run "interactive" mode then
> -Dlog4j.configuration is taken into account, but when it is started as
> a service then configuration is overwritten. Does it rings any bells
> to you?
Yes, sadly. Look at ErrorLogFile line 76. This code is called unless
you pass --console-log on the command line. It reconfigures the root
handles rotation. :-(