[
https://issues.apache.org/jira/browse/LOG4J2-721?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14064932#comment-14064932
]
Nelson MELINA edited comment on LOG4J2-721 at 7/17/14 1:54 PM:
---------------------------------------------------------------
http://developer.android.com/guide/topics/resources/accessing-resources.html
I tried put it in assets folder, and it did not seem to change anything.
>From the documentation i am seeing, it's not possible to change the
>configuration via the code directly when setting up the logger ?
UPDATE: I'm wrong, it's possible to configure programmaticaly.
{noformat}
Configuration of Log4j 2 can be accomplished in 1 of 4 ways:
Through a configuration file written in XML, JSON, or YAML.
Programmatically, by creating a ConfigurationFactory and Configuration
implementation.
Programmatically, by calling the APIs exposed in the Configuration
interface to add components to the default configuration.
Programmatically, by calling methods on the internal Logger class.
{noformat}
was (Author: daln):
http://developer.android.com/guide/topics/resources/accessing-resources.html
I tried put it in assets folder, and it did not seem to change anything.
>From the documentation i am seeing, it's not possible to change the
>configuration via the code directly when setting up the logger ?
> Where to place the log4j2.xml configuration file in an Android project ?
> ------------------------------------------------------------------------
>
> Key: LOG4J2-721
> URL: https://issues.apache.org/jira/browse/LOG4J2-721
> Project: Log4j 2
> Issue Type: Question
> Affects Versions: 2.0-rc2
> Environment: Android
> Reporter: Nelson MELINA
>
> I tried in several places but it doesn't seem to be used. Anyone have an idea
> where or how to place the configuration file ?
--
This message was sent by Atlassian JIRA
(v6.2#6252)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]