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

Nelson MELINA edited comment on LOG4J2-728 at 7/23/14 3:29 PM:
---------------------------------------------------------------

[[email protected]] i can't share it here directly as it's more than 
10 MB but here it is https://www.mediafire.com/?fy535art3azyc1r

{noFormat}
07-23 15:28:50.246    2717-2717/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-23 15:28:50,249 DEBUG Starting configuration 
XmlConfiguration[location=jar:file:/data/app/com.torointl.log4j2xtest-2.apk!/assets/log4j2.xml]
07-23 15:28:50.246    2717-2717/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-23 15:28:50,251 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-23 15:28:50.250    2717-2717/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-23 15:28:50,252 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-23 15:28:50.250    2717-2717/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-23 15:28:50,253 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-23 15:28:50.250    2717-2717/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-23 15:28:50,254 WARN No Loggers were configured, using default. Is the 
Loggers element missing?
07-23 15:28:50.250    2717-2717/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-23 15:28:50,255 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-23 15:28:50.254    2717-2717/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-23 15:28:50,256 ERROR Unrecognized format specifier [d]
07-23 15:28:50.254    2717-2717/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-23 15:28:50,257 ERROR Unrecognized conversion specifier [d] starting at 
position 16 in conversion pattern.
07-23 15:28:50.254    2717-2717/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-23 15:28:50,258 ERROR Unrecognized format specifier [thread]
07-23 15:28:50.254    2717-2717/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-23 15:28:50,258 ERROR Unrecognized conversion specifier [thread] 
starting at position 25 in conversion pattern.
07-23 15:28:50.254    2717-2717/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-23 15:28:50,260 ERROR Unrecognized format specifier [level]
07-23 15:28:50.258    2717-2717/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-23 15:28:50,260 ERROR Unrecognized conversion specifier [level] 
starting at position 35 in conversion pattern.
07-23 15:28:50.258    2717-2717/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-23 15:28:50,261 ERROR Unrecognized format specifier [logger]
07-23 15:28:50.258    2717-2717/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-23 15:28:50,262 ERROR Unrecognized conversion specifier [logger] 
starting at position 47 in conversion pattern.
07-23 15:28:50.258    2717-2717/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-23 15:28:50,263 ERROR Unrecognized format specifier [msg]
07-23 15:28:50.258    2717-2717/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-23 15:28:50,264 ERROR Unrecognized conversion specifier [msg] starting 
at position 54 in conversion pattern.
07-23 15:28:50.262    2717-2717/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-23 15:28:50,264 ERROR Unrecognized format specifier [n]
07-23 15:28:50.262    2717-2717/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-23 15:28:50,265 ERROR Unrecognized conversion specifier [n] starting at 
position 56 in conversion pattern.
07-23 15:28:50.262    2717-2717/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-23 15:28:50,266 DEBUG Started configuration 
XmlConfiguration[location=jar:file:/data/app/com.torointl.log4j2xtest-2.apk!/assets/log4j2.xml]
 OK.
07-23 15:28:50.262    2717-2717/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-23 15:28:50,267 TRACE Stopping 
org.apache.logging.log4j.core.config.DefaultConfiguration@527cd534...
07-23 15:28:50.262    2717-2717/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-23 15:28:50,267 TRACE AbstractConfiguration stopped 0 
AsyncLoggerConfigs.
07-23 15:28:50.266    2717-2717/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-23 15:28:50,268 TRACE AbstractConfiguration stopped 0 AsyncAppenders.
07-23 15:28:50.266    2717-2717/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-23 15:28:50,269 TRACE AbstractConfiguration stopped 1 Appenders.
07-23 15:28:50.266    2717-2717/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-23 15:28:50,270 TRACE AbstractConfiguration stopped 0 Loggers.
07-23 15:28:50.282    2717-2717/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-23 15:28:50,283 DEBUG Stopped 
org.apache.logging.log4j.core.config.DefaultConfiguration@527cd534 OK
07-23 15:28:50.398    2717-2717/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-23 15:28:50,401 DEBUG JMX disabled for log4j2. Not registering MBeans.
07-23 15:28:50.398    2717-2717/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-23 15:28:50,402 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@527ccadc)
07-23 15:28:50.398    2717-2717/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-23 15:28:50,402 DEBUG Shutdown hook enabled. Registering a new one.
07-23 15:28:50.398    2717-2717/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-23 15:28:50,403 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@527ccadc] started 
OK.
07-23 15:28:50.398    2717-2717/com.torointl.log4j2xtest I/System.out﹕ 
com.torointl.log4j2xtest.WasabiLogger
07-23 15:28:50.402    2717-2717/com.torointl.log4j2xtest I/System.out﹕ TEST 
NELSON SOUT ############################################
07-23 15:28:50.402    2717-2717/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-23 15:28:50,405 DEBUG Using default SystemClock for timestamps
07-23 15:28:50.402    2717-2717/com.torointl.log4j2xtest I/System.out﹕ %d 
[%thread] %-5level %logger - %msg%n
07-23 15:28:50.402    2717-2717/com.torointl.log4j2xtest I/System.out﹕ TEST 
NELSON SOUT2 ############################################
{noFormat}


was (Author: daln):
[[email protected]] i can't share it here directly as it's more than 
10 MB but here it is https://www.mediafire.com/?fy535art3azyc1r

{noFormat}
07-23 15:18:10.886    2591-2591/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-23 15:18:10,890 DEBUG Starting configuration 
XmlConfiguration[location=jar:file:/data/app/com.torointl.log4j2xtest-2.apk!/assets/log4j2.xml]
07-23 15:18:10.890    2591-2591/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-23 15:18:10,892 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-23 15:18:10.890    2591-2591/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-23 15:18:10,893 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-23 15:18:10.890    2591-2591/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-23 15:18:10,894 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-23 15:18:10.890    2591-2591/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-23 15:18:10,895 WARN No Loggers were configured, using default. Is the 
Loggers element missing?
07-23 15:18:10.894    2591-2591/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-23 15:18:10,896 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-23 15:18:10.894    2591-2591/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-23 15:18:10,897 ERROR Unrecognized format specifier [d]
07-23 15:18:10.894    2591-2591/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-23 15:18:10,898 ERROR Unrecognized conversion specifier [d] starting at 
position 16 in conversion pattern.
07-23 15:18:10.894    2591-2591/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-23 15:18:10,899 ERROR Unrecognized format specifier [thread]
07-23 15:18:10.894    2591-2591/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-23 15:18:10,900 ERROR Unrecognized conversion specifier [thread] 
starting at position 25 in conversion pattern.
07-23 15:18:10.898    2591-2591/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-23 15:18:10,900 ERROR Unrecognized format specifier [level]
07-23 15:18:10.898    2591-2591/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-23 15:18:10,901 ERROR Unrecognized conversion specifier [level] 
starting at position 35 in conversion pattern.
07-23 15:18:10.898    2591-2591/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-23 15:18:10,902 ERROR Unrecognized format specifier [logger]
07-23 15:18:10.898    2591-2591/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-23 15:18:10,902 ERROR Unrecognized conversion specifier [logger] 
starting at position 47 in conversion pattern.
07-23 15:18:10.898    2591-2591/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-23 15:18:10,903 ERROR Unrecognized format specifier [msg]
07-23 15:18:10.902    2591-2591/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-23 15:18:10,904 ERROR Unrecognized conversion specifier [msg] starting 
at position 54 in conversion pattern.
07-23 15:18:10.902    2591-2591/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-23 15:18:10,905 ERROR Unrecognized format specifier [n]
07-23 15:18:10.902    2591-2591/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-23 15:18:10,905 ERROR Unrecognized conversion specifier [n] starting at 
position 56 in conversion pattern.
07-23 15:18:10.902    2591-2591/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-23 15:18:10,906 DEBUG Started configuration 
XmlConfiguration[location=jar:file:/data/app/com.torointl.log4j2xtest-2.apk!/assets/log4j2.xml]
 OK.
07-23 15:18:10.902    2591-2591/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-23 15:18:10,907 TRACE Stopping 
org.apache.logging.log4j.core.config.DefaultConfiguration@527e8b34...
07-23 15:18:10.918    2591-2591/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-23 15:18:10,920 TRACE AbstractConfiguration stopped 0 
AsyncLoggerConfigs.
07-23 15:18:10.934    2591-2591/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-23 15:18:10,936 TRACE AbstractConfiguration stopped 0 AsyncAppenders.
07-23 15:18:10.950    2591-2591/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-23 15:18:10,951 TRACE AbstractConfiguration stopped 1 Appenders.
07-23 15:18:10.966    2591-2591/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-23 15:18:10,966 TRACE AbstractConfiguration stopped 0 Loggers.
07-23 15:18:10.982    2591-2591/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-23 15:18:10,982 DEBUG Stopped 
org.apache.logging.log4j.core.config.DefaultConfiguration@527e8b34 OK
07-23 15:18:11.066    2591-2591/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-23 15:18:11,071 DEBUG JMX disabled for log4j2. Not registering MBeans.
07-23 15:18:11.070    2591-2591/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-23 15:18:11,073 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@527e8844)
07-23 15:18:11.070    2591-2591/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-23 15:18:11,074 DEBUG Shutdown hook enabled. Registering a new one.
07-23 15:18:11.070    2591-2591/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-23 15:18:11,075 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@527e8844] started 
OK.
07-23 15:18:11.074    2591-2591/com.torointl.log4j2xtest I/System.out﹕ 
com.torointl.log4j2xtest.WasabiLogger
07-23 15:18:11.074    2591-2591/com.torointl.log4j2xtest I/System.out﹕ TEST 
NELSON SOUT ############################################
07-23 15:18:11.074    2591-2591/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-23 15:18:11,079 DEBUG Using default SystemClock for timestamps
07-23 15:18:11.078    2591-2591/com.torointl.log4j2xtest I/System.out﹕ %d 
[%thread] %-5level %logger - %msg%n
07-23 15:18:11.078    2591-2591/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