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

Remko Popma commented on LOG4J2-461:
------------------------------------

Gaurav, the only way this error can occur is if the log4j-core-2.0-beta9.jar  
is not found in the classpath when your application executes.

You mention that this jar is in your Build path. Do you mean your IDE's Build 
path? 
How do you run your Android App? Do you use an emulator? Can you print the 
value of system property "java.class.path" to the console when you start your 
app to ensure that it contains log4j-core-2.0-beta9.jar ?

>  ERROR StatusLogger Unable to locate a logging implementation, using 
> SimpleLogger
> ---------------------------------------------------------------------------------
>
>                 Key: LOG4J2-461
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-461
>             Project: Log4j 2
>          Issue Type: Bug
>          Components: API
>    Affects Versions: 2.0-beta9
>         Environment: Android
>            Reporter: Gaurav Kapoor
>            Priority: Blocker
>
> ERROR StatusLogger Unable to locate a logging implementation, using 
> SimpleLogger
> Code:
> Logger LOG = LogManager.getLogger(MainActivity.class);
>                       LOG.error("Test Log4j2");
> {code}
> <?xml version="1.0" encoding="UTF-8"?> 
> <Configuration> 
>   <Appenders> 
>     <Console name="STDOUT" target="SYSTEM_OUT"> 
>       <PatternLayout pattern="%d %-5p [%t] %C{2} (%F:%L) - %m%n"/> 
>     </Console> 
>   </Appenders> 
>   <Loggers> 
>     <Logger name="hello" level="info"/> 
>     <Root level="trace"> 
>       <AppenderRef ref="STDOUT"/> 
>     </Root> 
>   </Loggers> 
> </Configuration>
> {code}



--
This message was sent by Atlassian JIRA
(v6.1#6144)

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscr...@logging.apache.org
For additional commands, e-mail: log4j-dev-h...@logging.apache.org

Reply via email to