You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by "Joe Merten (JIRA)" <ji...@apache.org> on 2015/02/09 22:13:34 UTC

[jira] [Updated] (LOG4J2-951) How to use log4j2 with Android (Logcat)?

     [ https://issues.apache.org/jira/browse/LOG4J2-951?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joe Merten updated LOG4J2-951:
------------------------------
    Description: 
[This|https://github.com/Joe-Merten/Mpjoe/tree/master/Android] small Android project compiles using `mvn clean install`.

It includes something like

{quote}
    import org.apache.logging.log4j.LogManager;
    import org.apache.logging.log4j.Logger;
    ...
    logger.info("=== Initialized ===");
{quote}

But I didn't see my logging output on logcat.
Seems that I need something like a `LogcatAppender` but couldn't find hints how to do that.

I found [this|https://code.google.com/p/android-logging-log4j] project but it has no commits over the last 2 years and so it seems that it not fits to log4j2.

Could you help?

  was:
[This](https://github.com/Joe-Merten/Mpjoe/tree/master/Android) small Android project compiles using `mvn clean install`.

It includes something like

    import org.apache.logging.log4j.LogManager;
    import org.apache.logging.log4j.Logger;
    ...
    logger.info("=== Initialized ===");

But I didn't see my logging output on logcat.
Seems that I need something like a `LogcatAppender` but couldn't find hints how to do that.

I found [this](https://code.google.com/p/android-logging-log4j) project but it has no commits over the last 2 years and so it seems that it not fits to log4j2.

Could you help?


> How to use log4j2 with Android (Logcat)?
> ----------------------------------------
>
>                 Key: LOG4J2-951
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-951
>             Project: Log4j 2
>          Issue Type: Question
>          Components: Appenders
>    Affects Versions: 2.1
>         Environment: Android
>            Reporter: Joe Merten
>              Labels: maven
>
> [This|https://github.com/Joe-Merten/Mpjoe/tree/master/Android] small Android project compiles using `mvn clean install`.
> It includes something like
> {quote}
>     import org.apache.logging.log4j.LogManager;
>     import org.apache.logging.log4j.Logger;
>     ...
>     logger.info("=== Initialized ===");
> {quote}
> But I didn't see my logging output on logcat.
> Seems that I need something like a `LogcatAppender` but couldn't find hints how to do that.
> I found [this|https://code.google.com/p/android-logging-log4j] project but it has no commits over the last 2 years and so it seems that it not fits to log4j2.
> Could you help?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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