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

Nelson MELINA edited comment on LOG4J2-728 at 7/30/14 3:34 PM:
---------------------------------------------------------------

Avec <Configuration status="ERROR" verbose="true">:
{noFormat}
07-30 15:30:04.867      111-536/? W/audio_hw_primary﹕ out_write() limiting 
sleep time 31563 to 23219
07-30 15:30:07.531    1158-1164/? D/jdwp﹕ Got wake-up signal, bailing out of 
select
07-30 15:30:07.579    1200-1200/com.android.keychain W/ContextImpl﹕ Calling a 
method in the system process without a qualified user: 
android.app.ContextImpl.startService:1487 
android.content.ContextWrapper.startService:494 
android.content.ContextWrapper.startService:494 
com.android.keychain.KeyChainBroadcastReceiver.onReceive:12 
android.app.ActivityThread.handleReceiver:2419
07-30 15:30:09.179    1244-1244/com.torointl.log4j2xtest I/System.out﹕ CUSTOM 
Log4J2ConfigurationFactory
07-30 15:30:09.179    1244-1244/com.torointl.log4j2xtest I/System.out﹕ 
getConfiguration 
jar:file:/data/app/com.torointl.log4j2xtest-1.apk!/assets/log4j2.xml
07-30 15:30:09.207    1244-1244/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-30 15:30:09,210 ERROR Unrecognized format specifier [d]
07-30 15:30:09.207    1244-1244/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-30 15:30:09,211 ERROR Unrecognized conversion specifier [d] starting at 
position 16 in conversion pattern.
07-30 15:30:09.211    1244-1244/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-30 15:30:09,213 ERROR Unrecognized format specifier [thread]
07-30 15:30:09.211    1244-1244/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-30 15:30:09,213 ERROR Unrecognized conversion specifier [thread] 
starting at position 25 in conversion pattern.
07-30 15:30:09.211    1244-1244/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-30 15:30:09,215 ERROR Unrecognized format specifier [level]
07-30 15:30:09.215    1244-1244/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-30 15:30:09,217 ERROR Unrecognized conversion specifier [level] 
starting at position 35 in conversion pattern.
07-30 15:30:09.215    1244-1244/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-30 15:30:09,218 ERROR Unrecognized format specifier [logger]
07-30 15:30:09.219    1244-1244/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-30 15:30:09,219 ERROR Unrecognized conversion specifier [logger] 
starting at position 47 in conversion pattern.
07-30 15:30:09.219    1244-1244/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-30 15:30:09,221 ERROR Unrecognized format specifier [msg]
07-30 15:30:09.219    1244-1244/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-30 15:30:09,222 ERROR Unrecognized conversion specifier [msg] starting 
at position 54 in conversion pattern.
07-30 15:30:09.219    1244-1244/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-30 15:30:09,223 ERROR Unrecognized format specifier [n]
07-30 15:30:09.223    1244-1244/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-30 15:30:09,225 ERROR Unrecognized conversion specifier [n] starting at 
position 56 in conversion pattern.
07-30 15:30:09.395    1244-1244/com.torointl.log4j2xtest I/System.out﹕ 
com.torointl.log4j2xtest.WasabiLogger
07-30 15:30:09.395    1244-1244/com.torointl.log4j2xtest I/System.out﹕ %d 
[%thread] %-5level %logger - %msg%n
07-30 15:30:09.399    1244-1244/com.torointl.log4j2xtest I/System.out﹕ %d 
[%thread] %-5level %logger - %msg%n
07-30 15:30:09.399    1244-1244/com.torointl.log4j2xtest I/System.out﹕ %d 
[%thread] %-5level %logger - %msg%n
07-30 15:30:09.399    1244-1244/com.torointl.log4j2xtest I/System.out﹕ TEST 
NELSON SOUT ############################################
07-30 15:30:09.399    1244-1244/com.torointl.log4j2xtest I/System.out﹕ %d 
[%thread] %-5level %logger - %msg%n
07-30 15:30:09.399    1244-1244/com.torointl.log4j2xtest I/System.out﹕ %d 
[%thread] %-5level %logger - %msg%n
07-30 15:30:09.403    1244-1244/com.torointl.log4j2xtest I/System.out﹕ %d 
[%thread] %-5level %logger - %msg%n
07-30 15:30:09.403    1244-1244/com.torointl.log4j2xtest I/System.out﹕ %d 
[%thread] %-5level %logger - %msg%n
07-30 15:30:09.403    1244-1244/com.torointl.log4j2xtest I/System.out﹕ %d 
[%thread] %-5level %logger - %msg%n
07-30 15:30:09.407    1244-1244/com.torointl.log4j2xtest I/System.out﹕ %d 
[%thread] %-5level %logger - %msg%n
07-30 15:30:09.407    1244-1244/com.torointl.log4j2xtest I/System.out﹕ %d 
[%thread] %-5level %logger - %msg%n
07-30 15:30:09.407    1244-1244/com.torointl.log4j2xtest I/System.out﹕ %d 
[%thread] %-5level %logger - %msg%n
07-30 15:30:09.407    1244-1244/com.torointl.log4j2xtest I/System.out﹕ %d 
[%thread] %-5level %logger - %msg%n
07-30 15:30:09.411    1244-1244/com.torointl.log4j2xtest I/System.out﹕ TEST 
NELSON SOUT2 ############################################
{noFormat}

Avec <Configuration status="TRACE" verbose="true"> :
{noFormat}
07-30 15:33:31.919    1295-1295/com.torointl.log4j2xtest I/System.out﹕ CUSTOM 
Log4J2ConfigurationFactory
07-30 15:33:31.919    1295-1295/com.torointl.log4j2xtest I/System.out﹕ 
getConfiguration 
jar:file:/data/app/com.torointl.log4j2xtest-2.apk!/assets/log4j2.xml
07-30 15:33:31.947    1295-1295/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-30 15:33:31,952 DEBUG Starting configuration 
XmlConfiguration[location=jar:file:/data/app/com.torointl.log4j2xtest-2.apk!/assets/log4j2.xml]
07-30 15:33:31.951    1295-1295/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-30 15:33:31,953 INFO Plugin preloads not available from class loader 
org.apache.logging.log4j.core.util.ClassLoaderResourceLoader(dalvik.system.PathClassLoader[DexPathList[[zip
 file 
"/data/app/com.torointl.log4j2xtest-2.apk"],nativeLibraryDirectories=[/data/app-lib/com.torointl.log4j2xtest-2,
 /system/lib]]])
07-30 15:33:31.951    1295-1295/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-30 15:33:31,956 DEBUG Generated plugins in 0.001583 seconds, packages: 
[org.apache.logging.log4j.core], preload: true.
07-30 15:33:31.955    1295-1295/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-30 15:33:31,957 INFO Plugin preloads not available from class loader 
org.apache.logging.log4j.core.util.ClassLoaderResourceLoader(dalvik.system.PathClassLoader[DexPathList[[zip
 file 
"/data/app/com.torointl.log4j2xtest-2.apk"],nativeLibraryDirectories=[/data/app-lib/com.torointl.log4j2xtest-2,
 /system/lib]]])
07-30 15:33:31.955    1295-1295/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-30 15:33:31,959 DEBUG Generated plugins in 0.001795 seconds, packages: 
[org.apache.logging.log4j.core], preload: true.
07-30 15:33:31.959    1295-1295/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-30 15:33:31,961 INFO Plugin preloads not available from class loader 
org.apache.logging.log4j.core.util.ClassLoaderResourceLoader(dalvik.system.PathClassLoader[DexPathList[[zip
 file 
"/data/app/com.torointl.log4j2xtest-2.apk"],nativeLibraryDirectories=[/data/app-lib/com.torointl.log4j2xtest-2,
 /system/lib]]])
07-30 15:33:31.959    1295-1295/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-30 15:33:31,962 DEBUG Generated plugins in 0.000893 seconds, packages: 
[org.apache.logging.log4j.core], preload: true.
07-30 15:33:31.963    1295-1295/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-30 15:33:31,963 WARN No Loggers were configured, using default. Is the 
Loggers element missing?
07-30 15:33:31.963    1295-1295/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-30 15:33:31,965 INFO Plugin preloads not available from class loader 
org.apache.logging.log4j.core.util.ClassLoaderResourceLoader(dalvik.system.PathClassLoader[DexPathList[[zip
 file 
"/data/app/com.torointl.log4j2xtest-2.apk"],nativeLibraryDirectories=[/data/app-lib/com.torointl.log4j2xtest-2,
 /system/lib]]])
07-30 15:33:31.963    1295-1295/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-30 15:33:31,967 DEBUG Generated plugins in 0.001342 seconds, packages: 
[org.apache.logging.log4j.core], preload: true.
07-30 15:33:31.967    1295-1295/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-30 15:33:31,968 ERROR Unrecognized format specifier [d]
07-30 15:33:31.967    1295-1295/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-30 15:33:31,969 ERROR Unrecognized conversion specifier [d] starting at 
position 16 in conversion pattern.
07-30 15:33:31.967    1295-1295/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-30 15:33:31,971 ERROR Unrecognized format specifier [thread]
07-30 15:33:31.971    1295-1295/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-30 15:33:31,972 ERROR Unrecognized conversion specifier [thread] 
starting at position 25 in conversion pattern.
07-30 15:33:31.971    1295-1295/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-30 15:33:31,973 ERROR Unrecognized format specifier [level]
07-30 15:33:31.971    1295-1295/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-30 15:33:31,975 ERROR Unrecognized conversion specifier [level] 
starting at position 35 in conversion pattern.
07-30 15:33:31.971    1295-1295/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-30 15:33:31,976 ERROR Unrecognized format specifier [logger]
07-30 15:33:31.975    1295-1295/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-30 15:33:31,977 ERROR Unrecognized conversion specifier [logger] 
starting at position 47 in conversion pattern.
07-30 15:33:31.975    1295-1295/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-30 15:33:31,978 ERROR Unrecognized format specifier [msg]
07-30 15:33:31.975    1295-1295/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-30 15:33:31,979 ERROR Unrecognized conversion specifier [msg] starting 
at position 54 in conversion pattern.
07-30 15:33:31.991    1295-1295/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-30 15:33:31,993 ERROR Unrecognized format specifier [n]
07-30 15:33:32.011    1295-1295/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-30 15:33:32,011 ERROR Unrecognized conversion specifier [n] starting at 
position 56 in conversion pattern.
07-30 15:33:32.031    1295-1295/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-30 15:33:32,030 DEBUG Started configuration 
XmlConfiguration[location=jar:file:/data/app/com.torointl.log4j2xtest-2.apk!/assets/log4j2.xml]
 OK.
07-30 15:33:32.047    1295-1295/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-30 15:33:32,046 TRACE Stopping 
org.apache.logging.log4j.core.config.DefaultConfiguration@527d9200...
07-30 15:33:32.063    1295-1295/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-30 15:33:32,063 TRACE AbstractConfiguration stopped 0 
AsyncLoggerConfigs.
07-30 15:33:32.079    1295-1295/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-30 15:33:32,080 TRACE AbstractConfiguration stopped 0 AsyncAppenders.
07-30 15:33:32.095    1295-1295/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-30 15:33:32,095 TRACE AbstractConfiguration stopped 1 Appenders.
07-30 15:33:32.115    1295-1295/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-30 15:33:32,113 TRACE AbstractConfiguration stopped 0 Loggers.
07-30 15:33:32.131    1295-1295/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-30 15:33:32,130 DEBUG Stopped 
org.apache.logging.log4j.core.config.DefaultConfiguration@527d9200 OK
07-30 15:33:32.239    1295-1295/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-30 15:33:32,242 DEBUG JMX disabled for log4j2. Not registering MBeans.
07-30 15:33:32.239    1295-1295/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-30 15:33:32,243 DEBUG Reconfiguration complete for 
context[name=dalvik.system.PathClassLoader[DexPathList[[zip file 
"/data/app/com.torointl.log4j2xtest-2.apk"],nativeLibraryDirectories=[/data/app-lib/com.torointl.log4j2xtest-2,
 /system/lib]]]] at null (org.apache.logging.log4j.core.LoggerContext@527d8f54)
07-30 15:33:32.243    1295-1295/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-30 15:33:32,245 DEBUG Shutdown hook enabled. Registering a new one.
07-30 15:33:32.243    1295-1295/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-30 15:33:32,246 DEBUG 
LoggerContext[name=dalvik.system.PathClassLoader[DexPathList[[zip file 
"/data/app/com.torointl.log4j2xtest-2.apk"],nativeLibraryDirectories=[/data/app-lib/com.torointl.log4j2xtest-2,
 /system/lib]]], org.apache.logging.log4j.core.LoggerContext@527d8f54] started 
OK.
07-30 15:33:32.243    1295-1295/com.torointl.log4j2xtest I/System.out﹕ 
com.torointl.log4j2xtest.WasabiLogger
07-30 15:33:32.247    1295-1295/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-30 15:33:32,249 DEBUG Using default SystemClock for timestamps
07-30 15:33:32.247    1295-1295/com.torointl.log4j2xtest I/System.out﹕ %d 
[%thread] %-5level %logger - %msg%n
07-30 15:33:32.251    1295-1295/com.torointl.log4j2xtest I/System.out﹕ %d 
[%thread] %-5level %logger - %msg%n
07-30 15:33:32.251    1295-1295/com.torointl.log4j2xtest I/System.out﹕ %d 
[%thread] %-5level %logger - %msg%n
07-30 15:33:32.255    1295-1295/com.torointl.log4j2xtest I/System.out﹕ TEST 
NELSON SOUT ############################################
07-30 15:33:32.255    1295-1295/com.torointl.log4j2xtest I/System.out﹕ %d 
[%thread] %-5level %logger - %msg%n
07-30 15:33:32.259    1295-1295/com.torointl.log4j2xtest I/System.out﹕ %d 
[%thread] %-5level %logger - %msg%n
07-30 15:33:32.259    1295-1295/com.torointl.log4j2xtest I/System.out﹕ %d 
[%thread] %-5level %logger - %msg%n
07-30 15:33:32.263    1295-1295/com.torointl.log4j2xtest I/System.out﹕ %d 
[%thread] %-5level %logger - %msg%n
07-30 15:33:32.263    1295-1295/com.torointl.log4j2xtest I/System.out﹕ %d 
[%thread] %-5level %logger - %msg%n
07-30 15:33:32.267    1295-1295/com.torointl.log4j2xtest I/System.out﹕ %d 
[%thread] %-5level %logger - %msg%n
07-30 15:33:32.267    1295-1295/com.torointl.log4j2xtest I/System.out﹕ %d 
[%thread] %-5level %logger - %msg%n
07-30 15:33:32.271    1295-1295/com.torointl.log4j2xtest I/System.out﹕ %d 
[%thread] %-5level %logger - %msg%n
07-30 15:33:32.271    1295-1295/com.torointl.log4j2xtest I/System.out﹕ %d 
[%thread] %-5level %logger - %msg%n
07-30 15:33:32.271    1295-1295/com.torointl.log4j2xtest I/System.out﹕ TEST 
NELSON SOUT2 ############################################
{noFormat}

The config file 
{noFormat}
<?xml version="1.0" encoding="UTF-8"?>
<Configuration status="TRACE" verbose="true">
    <Appenders>
        <Console name="Console" target="SYSTEM_OUT">
            <PatternLayout pattern="%m%n"/>
        </Console>
    </Appenders>
    <Loggers>
        <Logger name="com.torointl.log4j2xtest.MyActivity" level="debug" 
additivity="false">
            <AppenderRef ref="Console" level="trace"/>
        </Logger>
        <Root level="trace">
            <AppenderRef ref="Console" level="trace"/>
        </Root>
    </Loggers>
</Configuration>
{noFormat}


was (Author: daln):
Avec <Configuration status="ERROR" verbose="true">:
{noFormat}
07-30 15:30:04.867      111-536/? W/audio_hw_primary﹕ out_write() limiting 
sleep time 31563 to 23219
07-30 15:30:07.531    1158-1164/? D/jdwp﹕ Got wake-up signal, bailing out of 
select
07-30 15:30:07.579    1200-1200/com.android.keychain W/ContextImpl﹕ Calling a 
method in the system process without a qualified user: 
android.app.ContextImpl.startService:1487 
android.content.ContextWrapper.startService:494 
android.content.ContextWrapper.startService:494 
com.android.keychain.KeyChainBroadcastReceiver.onReceive:12 
android.app.ActivityThread.handleReceiver:2419
07-30 15:30:09.179    1244-1244/com.torointl.log4j2xtest I/System.out﹕ CUSTOM 
Log4J2ConfigurationFactory
07-30 15:30:09.179    1244-1244/com.torointl.log4j2xtest I/System.out﹕ 
getConfiguration 
jar:file:/data/app/com.torointl.log4j2xtest-1.apk!/assets/log4j2.xml
07-30 15:30:09.207    1244-1244/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-30 15:30:09,210 ERROR Unrecognized format specifier [d]
07-30 15:30:09.207    1244-1244/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-30 15:30:09,211 ERROR Unrecognized conversion specifier [d] starting at 
position 16 in conversion pattern.
07-30 15:30:09.211    1244-1244/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-30 15:30:09,213 ERROR Unrecognized format specifier [thread]
07-30 15:30:09.211    1244-1244/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-30 15:30:09,213 ERROR Unrecognized conversion specifier [thread] 
starting at position 25 in conversion pattern.
07-30 15:30:09.211    1244-1244/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-30 15:30:09,215 ERROR Unrecognized format specifier [level]
07-30 15:30:09.215    1244-1244/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-30 15:30:09,217 ERROR Unrecognized conversion specifier [level] 
starting at position 35 in conversion pattern.
07-30 15:30:09.215    1244-1244/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-30 15:30:09,218 ERROR Unrecognized format specifier [logger]
07-30 15:30:09.219    1244-1244/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-30 15:30:09,219 ERROR Unrecognized conversion specifier [logger] 
starting at position 47 in conversion pattern.
07-30 15:30:09.219    1244-1244/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-30 15:30:09,221 ERROR Unrecognized format specifier [msg]
07-30 15:30:09.219    1244-1244/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-30 15:30:09,222 ERROR Unrecognized conversion specifier [msg] starting 
at position 54 in conversion pattern.
07-30 15:30:09.219    1244-1244/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-30 15:30:09,223 ERROR Unrecognized format specifier [n]
07-30 15:30:09.223    1244-1244/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-30 15:30:09,225 ERROR Unrecognized conversion specifier [n] starting at 
position 56 in conversion pattern.
07-30 15:30:09.395    1244-1244/com.torointl.log4j2xtest I/System.out﹕ 
com.torointl.log4j2xtest.WasabiLogger
07-30 15:30:09.395    1244-1244/com.torointl.log4j2xtest I/System.out﹕ %d 
[%thread] %-5level %logger - %msg%n
07-30 15:30:09.399    1244-1244/com.torointl.log4j2xtest I/System.out﹕ %d 
[%thread] %-5level %logger - %msg%n
07-30 15:30:09.399    1244-1244/com.torointl.log4j2xtest I/System.out﹕ %d 
[%thread] %-5level %logger - %msg%n
07-30 15:30:09.399    1244-1244/com.torointl.log4j2xtest I/System.out﹕ TEST 
NELSON SOUT ############################################
07-30 15:30:09.399    1244-1244/com.torointl.log4j2xtest I/System.out﹕ %d 
[%thread] %-5level %logger - %msg%n
07-30 15:30:09.399    1244-1244/com.torointl.log4j2xtest I/System.out﹕ %d 
[%thread] %-5level %logger - %msg%n
07-30 15:30:09.403    1244-1244/com.torointl.log4j2xtest I/System.out﹕ %d 
[%thread] %-5level %logger - %msg%n
07-30 15:30:09.403    1244-1244/com.torointl.log4j2xtest I/System.out﹕ %d 
[%thread] %-5level %logger - %msg%n
07-30 15:30:09.403    1244-1244/com.torointl.log4j2xtest I/System.out﹕ %d 
[%thread] %-5level %logger - %msg%n
07-30 15:30:09.407    1244-1244/com.torointl.log4j2xtest I/System.out﹕ %d 
[%thread] %-5level %logger - %msg%n
07-30 15:30:09.407    1244-1244/com.torointl.log4j2xtest I/System.out﹕ %d 
[%thread] %-5level %logger - %msg%n
07-30 15:30:09.407    1244-1244/com.torointl.log4j2xtest I/System.out﹕ %d 
[%thread] %-5level %logger - %msg%n
07-30 15:30:09.407    1244-1244/com.torointl.log4j2xtest I/System.out﹕ %d 
[%thread] %-5level %logger - %msg%n
07-30 15:30:09.411    1244-1244/com.torointl.log4j2xtest I/System.out﹕ TEST 
NELSON SOUT2 ############################################
{noFormat}

Avec <Configuration status="TRACE" verbose="true"> :
{noFormat}
07-30 15:33:31.919    1295-1295/com.torointl.log4j2xtest I/System.out﹕ CUSTOM 
Log4J2ConfigurationFactory
07-30 15:33:31.919    1295-1295/com.torointl.log4j2xtest I/System.out﹕ 
getConfiguration 
jar:file:/data/app/com.torointl.log4j2xtest-2.apk!/assets/log4j2.xml
07-30 15:33:31.947    1295-1295/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-30 15:33:31,952 DEBUG Starting configuration 
XmlConfiguration[location=jar:file:/data/app/com.torointl.log4j2xtest-2.apk!/assets/log4j2.xml]
07-30 15:33:31.951    1295-1295/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-30 15:33:31,953 INFO Plugin preloads not available from class loader 
org.apache.logging.log4j.core.util.ClassLoaderResourceLoader(dalvik.system.PathClassLoader[DexPathList[[zip
 file 
"/data/app/com.torointl.log4j2xtest-2.apk"],nativeLibraryDirectories=[/data/app-lib/com.torointl.log4j2xtest-2,
 /system/lib]]])
07-30 15:33:31.951    1295-1295/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-30 15:33:31,956 DEBUG Generated plugins in 0.001583 seconds, packages: 
[org.apache.logging.log4j.core], preload: true.
07-30 15:33:31.955    1295-1295/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-30 15:33:31,957 INFO Plugin preloads not available from class loader 
org.apache.logging.log4j.core.util.ClassLoaderResourceLoader(dalvik.system.PathClassLoader[DexPathList[[zip
 file 
"/data/app/com.torointl.log4j2xtest-2.apk"],nativeLibraryDirectories=[/data/app-lib/com.torointl.log4j2xtest-2,
 /system/lib]]])
07-30 15:33:31.955    1295-1295/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-30 15:33:31,959 DEBUG Generated plugins in 0.001795 seconds, packages: 
[org.apache.logging.log4j.core], preload: true.
07-30 15:33:31.959    1295-1295/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-30 15:33:31,961 INFO Plugin preloads not available from class loader 
org.apache.logging.log4j.core.util.ClassLoaderResourceLoader(dalvik.system.PathClassLoader[DexPathList[[zip
 file 
"/data/app/com.torointl.log4j2xtest-2.apk"],nativeLibraryDirectories=[/data/app-lib/com.torointl.log4j2xtest-2,
 /system/lib]]])
07-30 15:33:31.959    1295-1295/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-30 15:33:31,962 DEBUG Generated plugins in 0.000893 seconds, packages: 
[org.apache.logging.log4j.core], preload: true.
07-30 15:33:31.963    1295-1295/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-30 15:33:31,963 WARN No Loggers were configured, using default. Is the 
Loggers element missing?
07-30 15:33:31.963    1295-1295/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-30 15:33:31,965 INFO Plugin preloads not available from class loader 
org.apache.logging.log4j.core.util.ClassLoaderResourceLoader(dalvik.system.PathClassLoader[DexPathList[[zip
 file 
"/data/app/com.torointl.log4j2xtest-2.apk"],nativeLibraryDirectories=[/data/app-lib/com.torointl.log4j2xtest-2,
 /system/lib]]])
07-30 15:33:31.963    1295-1295/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-30 15:33:31,967 DEBUG Generated plugins in 0.001342 seconds, packages: 
[org.apache.logging.log4j.core], preload: true.
07-30 15:33:31.967    1295-1295/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-30 15:33:31,968 ERROR Unrecognized format specifier [d]
07-30 15:33:31.967    1295-1295/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-30 15:33:31,969 ERROR Unrecognized conversion specifier [d] starting at 
position 16 in conversion pattern.
07-30 15:33:31.967    1295-1295/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-30 15:33:31,971 ERROR Unrecognized format specifier [thread]
07-30 15:33:31.971    1295-1295/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-30 15:33:31,972 ERROR Unrecognized conversion specifier [thread] 
starting at position 25 in conversion pattern.
07-30 15:33:31.971    1295-1295/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-30 15:33:31,973 ERROR Unrecognized format specifier [level]
07-30 15:33:31.971    1295-1295/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-30 15:33:31,975 ERROR Unrecognized conversion specifier [level] 
starting at position 35 in conversion pattern.
07-30 15:33:31.971    1295-1295/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-30 15:33:31,976 ERROR Unrecognized format specifier [logger]
07-30 15:33:31.975    1295-1295/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-30 15:33:31,977 ERROR Unrecognized conversion specifier [logger] 
starting at position 47 in conversion pattern.
07-30 15:33:31.975    1295-1295/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-30 15:33:31,978 ERROR Unrecognized format specifier [msg]
07-30 15:33:31.975    1295-1295/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-30 15:33:31,979 ERROR Unrecognized conversion specifier [msg] starting 
at position 54 in conversion pattern.
07-30 15:33:31.991    1295-1295/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-30 15:33:31,993 ERROR Unrecognized format specifier [n]
07-30 15:33:32.011    1295-1295/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-30 15:33:32,011 ERROR Unrecognized conversion specifier [n] starting at 
position 56 in conversion pattern.
07-30 15:33:32.031    1295-1295/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-30 15:33:32,030 DEBUG Started configuration 
XmlConfiguration[location=jar:file:/data/app/com.torointl.log4j2xtest-2.apk!/assets/log4j2.xml]
 OK.
07-30 15:33:32.047    1295-1295/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-30 15:33:32,046 TRACE Stopping 
org.apache.logging.log4j.core.config.DefaultConfiguration@527d9200...
07-30 15:33:32.063    1295-1295/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-30 15:33:32,063 TRACE AbstractConfiguration stopped 0 
AsyncLoggerConfigs.
07-30 15:33:32.079    1295-1295/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-30 15:33:32,080 TRACE AbstractConfiguration stopped 0 AsyncAppenders.
07-30 15:33:32.095    1295-1295/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-30 15:33:32,095 TRACE AbstractConfiguration stopped 1 Appenders.
07-30 15:33:32.115    1295-1295/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-30 15:33:32,113 TRACE AbstractConfiguration stopped 0 Loggers.
07-30 15:33:32.131    1295-1295/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-30 15:33:32,130 DEBUG Stopped 
org.apache.logging.log4j.core.config.DefaultConfiguration@527d9200 OK
07-30 15:33:32.239    1295-1295/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-30 15:33:32,242 DEBUG JMX disabled for log4j2. Not registering MBeans.
07-30 15:33:32.239    1295-1295/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-30 15:33:32,243 DEBUG Reconfiguration complete for 
context[name=dalvik.system.PathClassLoader[DexPathList[[zip file 
"/data/app/com.torointl.log4j2xtest-2.apk"],nativeLibraryDirectories=[/data/app-lib/com.torointl.log4j2xtest-2,
 /system/lib]]]] at null (org.apache.logging.log4j.core.LoggerContext@527d8f54)
07-30 15:33:32.243    1295-1295/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-30 15:33:32,245 DEBUG Shutdown hook enabled. Registering a new one.
07-30 15:33:32.243    1295-1295/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-30 15:33:32,246 DEBUG 
LoggerContext[name=dalvik.system.PathClassLoader[DexPathList[[zip file 
"/data/app/com.torointl.log4j2xtest-2.apk"],nativeLibraryDirectories=[/data/app-lib/com.torointl.log4j2xtest-2,
 /system/lib]]], org.apache.logging.log4j.core.LoggerContext@527d8f54] started 
OK.
07-30 15:33:32.243    1295-1295/com.torointl.log4j2xtest I/System.out﹕ 
com.torointl.log4j2xtest.WasabiLogger
07-30 15:33:32.247    1295-1295/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-30 15:33:32,249 DEBUG Using default SystemClock for timestamps
07-30 15:33:32.247    1295-1295/com.torointl.log4j2xtest I/System.out﹕ %d 
[%thread] %-5level %logger - %msg%n
07-30 15:33:32.251    1295-1295/com.torointl.log4j2xtest I/System.out﹕ %d 
[%thread] %-5level %logger - %msg%n
07-30 15:33:32.251    1295-1295/com.torointl.log4j2xtest I/System.out﹕ %d 
[%thread] %-5level %logger - %msg%n
07-30 15:33:32.255    1295-1295/com.torointl.log4j2xtest I/System.out﹕ TEST 
NELSON SOUT ############################################
07-30 15:33:32.255    1295-1295/com.torointl.log4j2xtest I/System.out﹕ %d 
[%thread] %-5level %logger - %msg%n
07-30 15:33:32.259    1295-1295/com.torointl.log4j2xtest I/System.out﹕ %d 
[%thread] %-5level %logger - %msg%n
07-30 15:33:32.259    1295-1295/com.torointl.log4j2xtest I/System.out﹕ %d 
[%thread] %-5level %logger - %msg%n
07-30 15:33:32.263    1295-1295/com.torointl.log4j2xtest I/System.out﹕ %d 
[%thread] %-5level %logger - %msg%n
07-30 15:33:32.263    1295-1295/com.torointl.log4j2xtest I/System.out﹕ %d 
[%thread] %-5level %logger - %msg%n
07-30 15:33:32.267    1295-1295/com.torointl.log4j2xtest I/System.out﹕ %d 
[%thread] %-5level %logger - %msg%n
07-30 15:33:32.267    1295-1295/com.torointl.log4j2xtest I/System.out﹕ %d 
[%thread] %-5level %logger - %msg%n
07-30 15:33:32.271    1295-1295/com.torointl.log4j2xtest I/System.out﹕ %d 
[%thread] %-5level %logger - %msg%n
07-30 15:33:32.271    1295-1295/com.torointl.log4j2xtest I/System.out﹕ %d 
[%thread] %-5level %logger - %msg%n
07-30 15:33:32.271    1295-1295/com.torointl.log4j2xtest I/System.out﹕ TEST 
NELSON SOUT2 ############################################
{noFormat}

> Look for log4j2.xml in assets folder (or the application data) in an Android 
> APK.
> ---------------------------------------------------------------------------------
>
>                 Key: LOG4J2-728
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-728
>             Project: Log4j 2
>          Issue Type: Bug
>          Components: Configurators
>    Affects Versions: 2.0-rc2
>         Environment: Android
>            Reporter: Nelson MELINA
>              Labels: android
>
> To add files in an Android apk, you need to put them in an assets folder and 
> then they are in an "assets" folder in the APK.
> Log4j 2 needs to find it there when it exists (not the case now).
> Also would it be possible to load the xml configuration file from the 
> application data ( 
> https://developer.android.com/guide/topics/data/data-storage.html ) ?



--
This message was sent by Atlassian JIRA
(v6.2#6252)

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

Reply via email to