[
https://issues.apache.org/jira/browse/LOG4J2-728?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14077936#comment-14077936
]
Remko Popma edited comment on LOG4J2-728 at 7/29/14 4:33 PM:
-------------------------------------------------------------
Currently the MBeans stuff is handled by surrounding it with a try/catch. The
assumption is that Android would throw an exception. If that is not the case,
perhaps it is better to check with {{if (!Platform.isAndroid()) { ... register
MBeans....\}}} instead. The Platform class would be a new utility class. The
{{isAndroid()}} method could make a decision based on system property values.
Same for the JNDI stuff, as Gary noticed that there are still JNDI
lookup-related errors in the log.
About the core pattern converters, could it be that the serialized Plugins .dat
metadata file is not loaded correctly?
was (Author: [email protected]):
Currently the MBeans stuff is handled by surrounding it with a try/catch. The
assumption is that Android would throw an exception. If that is not the case,
perhaps it is better to check with {{if (!Platform.isAndroid()) { ... register
MBeans....\}}} instead.
Same for the JNDI stuff, as Gary noticed that there are still JNDI
lookup-related errors in the log.
About the core pattern converters, could it be that the serialized Plugins .dat
metadata file is not loaded correctly?
> 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]