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

Nelson MELINA commented on LOG4J2-728:
--------------------------------------

{noFormat}
07-22 11:44:37.625    3445-3445/com.torointl.log4j2xtest I/System.out﹕ %d 
[%thread] %-5level %logger - %msg%n
07-22 11:44:37.625    3445-3445/com.torointl.log4j2xtest I/System.out﹕ %d 
[%thread] %-5level %logger - %msg%n
07-22 11:44:37.629    3445-3445/com.torointl.log4j2xtest I/System.out﹕ %d 
[%thread] %-5level %logger - %msg%n
07-22 11:44:37.629    3445-3445/com.torointl.log4j2xtest I/System.out﹕ TEST 
NELSON SOUT ############################################
07-22 11:44:37.633    3445-3445/com.torointl.log4j2xtest I/System.out﹕ %d 
[%thread] %-5level %logger - %msg%n
07-22 11:44:37.633    3445-3445/com.torointl.log4j2xtest I/System.out﹕ %d 
[%thread] %-5level %logger - %msg%n
07-22 11:44:37.637    3445-3445/com.torointl.log4j2xtest I/System.out﹕ %d 
[%thread] %-5level %logger - %msg%n
07-22 11:44:37.637    3445-3445/com.torointl.log4j2xtest I/System.out﹕ %d 
[%thread] %-5level %logger - %msg%n
07-22 11:44:37.641    3445-3445/com.torointl.log4j2xtest I/System.out﹕ %d 
[%thread] %-5level %logger - %msg%n
07-22 11:44:37.645    3445-3445/com.torointl.log4j2xtest I/System.out﹕ %d 
[%thread] %-5level %logger - %msg%n
07-22 11:44:37.645    3445-3445/com.torointl.log4j2xtest I/System.out﹕ %d 
[%thread] %-5level %logger - %msg%n
07-22 11:44:37.649    3445-3445/com.torointl.log4j2xtest I/System.out﹕ %d 
[%thread] %-5level %logger - %msg%n
07-22 11:44:37.649    3445-3445/com.torointl.log4j2xtest I/System.out﹕ %d 
[%thread] %-5level %logger - %msg%n
07-22 11:44:37.649    3445-3445/com.torointl.log4j2xtest I/System.out﹕ TEST 
NELSON SOUT2 ############################################
{noFormat}

It looks like it's using a pattern layout by default and also this pattern is 
not working somehow. How can i check that it is really using my log4j2.xml or 
not ?

> 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