You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by "Ralph Goers (JIRA)" <ji...@apache.org> on 2012/10/31 19:40:12 UTC

[jira] [Commented] (LOG4J2-106) log4j2 configuration reloading does not work when log4j xml is not in classpath

    [ https://issues.apache.org/jira/browse/LOG4J2-106?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13488072#comment-13488072 ] 

Ralph Goers commented on LOG4J2-106:
------------------------------------

Thanks. After glancing at the code I don't think this is specific to JBoss.  
                
> log4j2 configuration reloading does not work when log4j xml is not in classpath
> -------------------------------------------------------------------------------
>
>                 Key: LOG4J2-106
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-106
>             Project: Log4j 2
>          Issue Type: Bug
>    Affects Versions: 2.0-beta2
>            Reporter: Anand Awasthi
>
> I am testing log4j2 on JBOSS EAP 5.0. I have copied log4j2.xml in JBOSS_HOME\server\default\conf and add the system property in eclipse server launch configuration as below:
> -Dlog4j.configurationFile=C:\softwares\jboss-eap-5.0.1\jboss-eap-5.0\jboss-as\server\default\conf\log4j2.xml
> if i modify log4j.xml and change log level etc. those changes are not picked up by log4j.  below is my log4j2.xml
> <?xml version="1.0" encoding="UTF-8"?>
> <configuration name="log4j2-Test" status="DEBUG" monitorInterval="5" strict="true">
>   <appenders>
>     <Console name="Console" target="SYSTEM_OUT">
>       <PatternLayout pattern="%d{HH:mm:ss.SSS} [%t] %-5level %logger{36} - %msg%n"/>
>     </Console>
>   </appenders>
>   <loggers>
>   <logger name="com.xyz" level="DEBUG" >
>       <appender-ref ref="Console"/>
>   </logger>
>     <root level="error">
>       <appender-ref ref="Console"/>
>     </root>
>   </loggers>
> </configuration>

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org