[ 
http://issues.apache.org/jira/browse/GERONIMO-1476?page=comments#action_12425475
 ] 
            
Chris Cardona commented on GERONIMO-1476:
-----------------------------------------

Donald,

I wasn't able to replicate this problem. I modified the root logger level from 
log4j.rootCategory=INFO, CONSOLE, FILE to log4j.rootCategory=ALL, CONSOLE, FILE 
and it behaved as expected. I saw INFO, WARN, ERROR and FATAL messages logged 
into the console and DEBUG, INFO, WARN, ERROR and FATAL logged into 
geronimo.log file. Note that the CONSOLE appender has its threshold set to INFO 
by default and the FILE appender is set to DEBUG by default. Even though the 
root logger's level is set to ALL it has no influence on the appenders attached 
to it. The appender's threshold settings will be followed. Please comment if 
you think I misunderstood your problem otherwise I suggest that we close this 
issue. Thanks.

chris

> Changes to default log4j.rootCategory are not dynamic
> -----------------------------------------------------
>
>                 Key: GERONIMO-1476
>                 URL: http://issues.apache.org/jira/browse/GERONIMO-1476
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: Logging
>    Affects Versions: 1.0
>         Environment: AG 1.0 on WinXP w/ Sun JDK 1.4.2_08
>            Reporter: Donald Woods
>         Assigned To: Chris Cardona
>             Fix For: 1.1.1
>
>
> Changes to the log4j.rootCategory value in server-log4j.properties while the 
> server is running has no effect.
> If you change the default -
>    log4j.rootCategory=INFO, CONSOLE, FILE
> to
>    log4j.rootCategory=ALL, CONSOLE, FILE
> none of the Log4J loggers are updated to emit the additional log levels of 
> Debug, Trace and All.
> Updating the following appender -
>    log4j.appender.FILE.threshold=INFO
> to ALL is dynamic for already set components, so the timer thread to pickup 
> changes to server-log4j.properties is working, but the rootCategory is never 
> updated if changed.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to