logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Remko Popma (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LOG4J2-728) Look for log4j2.xml in assets folder (or the application data) in an Android APK.
Date Mon, 21 Jul 2014 14:32:39 GMT

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

Remko Popma commented on LOG4J2-728:
------------------------------------

>From a very brief glance at the Android documentation it seems that accessing a resource
(like the log4j2.xml file) may only be possible using non-standard, Android-only APIs.

I haven't analysed yet how easy or difficult it would be to change our configuration mechanism
to use Android APIs on the Android platform and the current mechanism when on non-Android
platforms. This may be possible but would probably not be trivial.

Is there way to load resource files like the log4j2.xml file on the Android platform using
an API that would be more compatible with  other (non-Android) platforms? 

> 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: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org


Mime
View raw message