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 "Remko Popma (JIRA)" <ji...@apache.org> on 2014/07/16 15:33:13 UTC

[jira] [Resolved] (LOG4J2-716) Auto-disable JMX when detecting Android

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

Remko Popma resolved LOG4J2-716.
--------------------------------

    Resolution: Fixed

Fixed in revision 1611003.
Please verify and close.

> Auto-disable JMX when detecting Android
> ---------------------------------------
>
>                 Key: LOG4J2-716
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-716
>             Project: Log4j 2
>          Issue Type: Improvement
>          Components: JMX
>            Reporter: Remko Popma
>            Assignee: Remko Popma
>             Fix For: 2.1
>
>
> During the investigation of LOG4J2-703 we discovered that on Android's Dalvik VM, Log4J2's JMX components cannot be initialized.
> This can be worked around by setting system property {{log4j2.disable.jmx=true}}.
> This ticket is to automatically set that system property when detecting that Log4j is running on Android.
> TODO investigate if JMX is not supported at all on that environment or whether it can be made to work if invoked correctly. UPDATE: {{java.lang.management}} is not supported as of Android API level 20. See http://developer.android.com/reference/packages.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