Hello Log4j2 experts!
I want to bypass the log messages of commons.logging and log4j (1.2) to
log4j2. Only Log4j2 messages are logged but not log4j1.2 and commons.logging
messages. What am I doing wrong?

Thanks & Regards
Roland

<?xml version="1.0" encoding="UTF-8"?>
<configuration status="debug" name="logserviceconfiguration" packages="">
  <properties>
    <property name="filename">logfiles/ACOS-RTU.log</property>
  </properties>
  <appenders>
    <RollingRandomAccessFile name="FastRollingFile" fileName="${filename}"
filePattern="logfiles/ACOS-RTU-%d{MM-dd-yyyy}.log.gz">
      <PatternLayout>
        <pattern>%d %p %c{1.} [%t] %m%n</pattern>
      </PatternLayout>
      <Policies>
        <TimeBasedTriggeringPolicy interval="1" modulate="true"/>
        <SizeBasedTriggeringPolicy size="1 MB"/>
      </Policies>
    </RollingRandomAccessFile>
  </appenders>
  <loggers>
    <root level="trace">
      <appender-ref ref="FastRollingFile"/>
    </root>
  </loggers>
</configuration>


START LEVEL 4
   ID|State      |Level|Name
    0|Active     |    0|System Bundle (4.2.1)
    1|Resolved   |    2|Log4J2-Configuration (1.0.0.0)
    5|Active     |    2|Apache Felix Configuration Admin Service (1.6.0)
    6|Active     |    2|Apache Felix Declarative Services (1.6.2)
    7|Active     |    2|Apache Felix EventAdmin (1.3.2)
    8|Active     |    2|Apache Felix Gogo Command (0.12.0)
    9|Active     |    2|Apache Felix Gogo Runtime (0.10.0)
   10|Active     |    2|Apache Felix Gogo Shell (0.10.0)
   11|Resolved   |    2|Apache Felix Security Provider (2.2.0)
   12|Active     |    2|Apache Felix Shell Service (1.4.3)
   13|Active     |    2|Apache Log4j 1.x Compatibility API
(2.0.0.beta9-SNAPSHOT)
   14|Active     |    2|Apache Log4j API (2.0.0.beta9-SNAPSHOT)
   15|Active     |    2|Apache Log4j Commons Logging Bridge
(2.0.0.beta9-SNAPSHOT)
   16|Resolved   |    2|Apache Log4j Core (2.0.0.beta9-SNAPSHOT)
   17|Active     |    2|Apache Log4j SLF4J Binding (2.0.0.beta9-SNAPSHOT)
   18|Active     |    2|cal10n-api (0.7.4)
   19|Active     |    2|Commons IO (2.4.0)
   20|Active     |    2|Commons Lang (2.6.0)
   21|Active     |    2|Commons Logging (1.1.3)
   22|Active     |    2|Disruptor Framework (3.1.1)
   23|Active     |    2|Jackson-annotations (2.2.2)
   24|Active     |    2|Jackson-core (2.2.2)
   25|Active     |    2|jackson-databind (2.2.2)
   26|Active     |    2|JSON.simple (1.1.1)
   27|Active     |    2|MongoDB Java Driver (2.11.2.RELEASE)
   28|Active     |    2|slf4j-api (1.7.5)
   29|Active     |    2|slf4j-ext (1.7.5)




--
View this message in context: 
http://apache-logging.6191.n7.nabble.com/Using-log4j-jcl-and-log4j-1-2-api-in-an-OSGi-environment-tp40231.html
Sent from the Log4j - Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to