[
https://issues.apache.org/jira/browse/LOG4J2-728?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14079415#comment-14079415
]
Ralph Goers commented on LOG4J2-728:
------------------------------------
You should see lines about the different components in the file. Each Appender,
Layout, Logger should have lines identifying the parameters for it.
The unrecognized format specifier messages are coming from
PatternParser.createConverter. The fact that it emitting these for standard
converters clearly indicates there is something wrong with plugin processing.
Also, DefaultConfiguration uses a pattern of "%d{HH:mm:ss.SSS} [%thread]
%-5level %logger{36} - %msg%n" which seems to match the error messages, so I am
pretty sure that is happening before your configuration is accessed.
The only thing I really see in the log when it is supposedly loading your
configuration are all the JMX errors. I see messages about loading plugins, but
with verbose="true" we should see messages about every plugin and we don't. So
again, I think something is broken in plugin processing in this environment.
> 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]