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

Nelson MELINA commented on LOG4J2-728:
--------------------------------------

I cleaned a little bit the code and made some tests.

Here is the project https://www.mediafire.com/?28rzqe23wgs3k3c

First i verified that My configuration factory was actually used and that the 
InputStream inside the ConfigurationSource contain my xml file, and it does.

In the following code i removed my test to print the content of the file with 
the inputStream.

{code:title=Log4J2ConfigurationFactory.java|borderStyle=solid}
@Plugin(name = "Log4J2ConfigurationFactory", category = "ConfigurationFactory")
@Order(99)
public class Log4J2ConfigurationFactory extends XmlConfigurationFactory {

    /**
     * Valid file extensions for XML files.
     */
    public static final String[] SUFFIXES = new String[] {".xml", "*"};

    /**
     * Return the Configuration.
     * @param source The InputSource.
     * @return The Configuration.
     */
    @Override
    public Configuration getConfiguration(final ConfigurationSource source) {
        System.out.println(" CUSTOM Log4J2ConfigurationFactory ");
        System.out.println(" getConfiguration " + source.toString());
        return new XmlConfiguration(source);
    }

    /**
     * Returns the file suffixes for XML files.
     * @return An array of File extensions.
     */
    public String[] getSupportedTypes() {
        return SUFFIXES;
    }

    public Log4J2ConfigurationFactory() {
        super();
    }
}
{code}

Here is the log i obtain :
{noFormat}
07-29 13:50:14.444    2719-2719/com.torointl.log4j2xtest D/dalvikvm﹕ 
Late-enabling CheckJNI
07-29 13:50:15.048    2719-2719/com.torointl.log4j2xtest D/dalvikvm﹕ 
GC_FOR_ALLOC freed 245K, 10% free 2931K/3228K, paused 4ms, total 4ms
07-29 13:50:15.060    2719-2719/com.torointl.log4j2xtest E/dalvikvm﹕ Could not 
find class 'javax.naming.InitialContext', referenced from method 
org.apache.logging.log4j.core.lookup.JndiLookup.lookup
07-29 13:50:15.060    2719-2719/com.torointl.log4j2xtest W/dalvikvm﹕ VFY: 
unable to resolve new-instance 1980 (Ljavax/naming/InitialContext;) in 
Lorg/apache/logging/log4j/core/lookup/JndiLookup;
07-29 13:50:15.060    2719-2719/com.torointl.log4j2xtest D/dalvikvm﹕ VFY: 
replacing opcode 0x22 at 0x0006
07-29 13:50:15.060    2719-2719/com.torointl.log4j2xtest W/dalvikvm﹕ VFY: 
unable to resolve exception class 1982 (Ljavax/naming/NamingException;)
07-29 13:50:15.060    2719-2719/com.torointl.log4j2xtest W/dalvikvm﹕ VFY: 
unable to find exception handler at addr 0x19
07-29 13:50:15.060    2719-2719/com.torointl.log4j2xtest W/dalvikvm﹕ VFY:  
rejected Lorg/apache/logging/log4j/core/lookup/JndiLookup;.lookup 
(Lorg/apache/logging/log4j/core/LogEvent;Ljava/lang/String;)Ljava/lang/String;
07-29 13:50:15.060    2719-2719/com.torointl.log4j2xtest W/dalvikvm﹕ VFY:  
rejecting opcode 0x0d at 0x0019
07-29 13:50:15.060    2719-2719/com.torointl.log4j2xtest W/dalvikvm﹕ VFY:  
rejected Lorg/apache/logging/log4j/core/lookup/JndiLookup;.lookup 
(Lorg/apache/logging/log4j/core/LogEvent;Ljava/lang/String;)Ljava/lang/String;
07-29 13:50:15.064    2719-2719/com.torointl.log4j2xtest W/dalvikvm﹕ Verifier 
rejected class Lorg/apache/logging/log4j/core/lookup/JndiLookup;
07-29 13:50:15.064    2719-2719/com.torointl.log4j2xtest I/dalvikvm﹕ Rejecting 
re-init on previously-failed class 
Lorg/apache/logging/log4j/core/lookup/JndiLookup; v=0xa4cfbbe8
07-29 13:50:15.064    2719-2719/com.torointl.log4j2xtest I/dalvikvm﹕ Could not 
find method org.osgi.framework.FrameworkUtil.getBundle, referenced from method 
org.apache.logging.log4j.core.config.plugins.util.ResolverUtil.loadImplementationsInBundle
07-29 13:50:15.068    2719-2719/com.torointl.log4j2xtest W/dalvikvm﹕ VFY: 
unable to resolve static method 51213: 
Lorg/osgi/framework/FrameworkUtil;.getBundle 
(Ljava/lang/Class;)Lorg/osgi/framework/Bundle;
07-29 13:50:15.068    2719-2719/com.torointl.log4j2xtest D/dalvikvm﹕ VFY: 
replacing opcode 0x71 at 0x0002
07-29 13:50:15.072    2719-2719/com.torointl.log4j2xtest W/System.err﹕ ERROR 
StatusLogger Unrecognized format specifier [d]
07-29 13:50:15.072    2719-2719/com.torointl.log4j2xtest W/System.err﹕ ERROR 
StatusLogger Unrecognized conversion specifier [d] starting at position 16 in 
conversion pattern.
07-29 13:50:15.072    2719-2719/com.torointl.log4j2xtest W/System.err﹕ ERROR 
StatusLogger Unrecognized format specifier [thread]
07-29 13:50:15.072    2719-2719/com.torointl.log4j2xtest W/System.err﹕ ERROR 
StatusLogger Unrecognized conversion specifier [thread] starting at position 25 
in conversion pattern.
07-29 13:50:15.072    2719-2719/com.torointl.log4j2xtest W/System.err﹕ ERROR 
StatusLogger Unrecognized format specifier [level]
07-29 13:50:15.076    2719-2719/com.torointl.log4j2xtest W/System.err﹕ ERROR 
StatusLogger Unrecognized conversion specifier [level] starting at position 35 
in conversion pattern.
07-29 13:50:15.076    2719-2719/com.torointl.log4j2xtest W/System.err﹕ ERROR 
StatusLogger Unrecognized format specifier [logger]
07-29 13:50:15.076    2719-2719/com.torointl.log4j2xtest W/System.err﹕ ERROR 
StatusLogger Unrecognized conversion specifier [logger] starting at position 47 
in conversion pattern.
07-29 13:50:15.076    2719-2719/com.torointl.log4j2xtest W/System.err﹕ ERROR 
StatusLogger Unrecognized format specifier [msg]
07-29 13:50:15.076    2719-2719/com.torointl.log4j2xtest W/System.err﹕ ERROR 
StatusLogger Unrecognized conversion specifier [msg] starting at position 54 in 
conversion pattern.
07-29 13:50:15.076    2719-2719/com.torointl.log4j2xtest W/System.err﹕ ERROR 
StatusLogger Unrecognized format specifier [n]
07-29 13:50:15.092    2719-2719/com.torointl.log4j2xtest W/System.err﹕ ERROR 
StatusLogger Unrecognized conversion specifier [n] starting at position 56 in 
conversion pattern.
07-29 13:50:15.112    2719-2719/com.torointl.log4j2xtest I/dalvikvm﹕ Rejecting 
re-init on previously-failed class 
Lorg/apache/logging/log4j/core/lookup/JndiLookup; v=0xa4cfbbe8
07-29 13:50:15.120    2719-2719/com.torointl.log4j2xtest I/dalvikvm﹕ Rejecting 
re-init on previously-failed class 
Lorg/apache/logging/log4j/core/lookup/JndiLookup; v=0xa4cfbbe8
07-29 13:50:15.144    2719-2719/com.torointl.log4j2xtest I/System.out﹕ CUSTOM 
Log4J2ConfigurationFactory
07-29 13:50:15.144    2719-2719/com.torointl.log4j2xtest I/System.out﹕ 
getConfiguration 
jar:file:/data/app/com.torointl.log4j2xtest-2.apk!/assets/log4j2.xml
07-29 13:50:15.148    2719-2719/com.torointl.log4j2xtest I/dalvikvm﹕ Rejecting 
re-init on previously-failed class 
Lorg/apache/logging/log4j/core/lookup/JndiLookup; v=0xa4cfbbe8
07-29 13:50:15.168    2719-2719/com.torointl.log4j2xtest D/dalvikvm﹕ 
GC_FOR_ALLOC freed 446K, 15% free 2990K/3488K, paused 2ms, total 2ms
07-29 13:50:15.172    2719-2719/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-29 13:50:15,174 DEBUG Starting configuration 
XmlConfiguration[location=jar:file:/data/app/com.torointl.log4j2xtest-2.apk!/assets/log4j2.xml]
07-29 13:50:15.172    2719-2719/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-29 13:50:15,175 INFO Plugin preloads not available from class loader 
org.apache.logging.log4j.core.util.ClassLoaderResourceLoader(dalvik.system.PathClassLoader[DexPathList[[zip
 file 
"/data/app/com.torointl.log4j2xtest-2.apk"],nativeLibraryDirectories=[/data/app-lib/com.torointl.log4j2xtest-2,
 /system/lib]]])
07-29 13:50:15.172    2719-2719/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-29 13:50:15,176 DEBUG Generated plugins in 0.000966 seconds, packages: 
[org.apache.logging.log4j.core], preload: true.
07-29 13:50:15.172    2719-2719/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-29 13:50:15,177 INFO Plugin preloads not available from class loader 
org.apache.logging.log4j.core.util.ClassLoaderResourceLoader(dalvik.system.PathClassLoader[DexPathList[[zip
 file 
"/data/app/com.torointl.log4j2xtest-2.apk"],nativeLibraryDirectories=[/data/app-lib/com.torointl.log4j2xtest-2,
 /system/lib]]])
07-29 13:50:15.172    2719-2719/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-29 13:50:15,178 DEBUG Generated plugins in 0.000766 seconds, packages: 
[org.apache.logging.log4j.core], preload: true.
07-29 13:50:15.176    2719-2719/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-29 13:50:15,179 INFO Plugin preloads not available from class loader 
org.apache.logging.log4j.core.util.ClassLoaderResourceLoader(dalvik.system.PathClassLoader[DexPathList[[zip
 file 
"/data/app/com.torointl.log4j2xtest-2.apk"],nativeLibraryDirectories=[/data/app-lib/com.torointl.log4j2xtest-2,
 /system/lib]]])
07-29 13:50:15.176    2719-2719/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-29 13:50:15,180 DEBUG Generated plugins in 0.000938 seconds, packages: 
[org.apache.logging.log4j.core], preload: true.
07-29 13:50:15.176    2719-2719/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-29 13:50:15,181 WARN No Loggers were configured, using default. Is the 
Loggers element missing?
07-29 13:50:15.176    2719-2719/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-29 13:50:15,182 INFO Plugin preloads not available from class loader 
org.apache.logging.log4j.core.util.ClassLoaderResourceLoader(dalvik.system.PathClassLoader[DexPathList[[zip
 file 
"/data/app/com.torointl.log4j2xtest-2.apk"],nativeLibraryDirectories=[/data/app-lib/com.torointl.log4j2xtest-2,
 /system/lib]]])
07-29 13:50:15.180    2719-2719/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-29 13:50:15,184 DEBUG Generated plugins in 0.001929 seconds, packages: 
[org.apache.logging.log4j.core], preload: true.
07-29 13:50:15.180    2719-2719/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-29 13:50:15,184 ERROR Unrecognized format specifier [d]
07-29 13:50:15.180    2719-2719/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-29 13:50:15,185 ERROR Unrecognized conversion specifier [d] starting at 
position 16 in conversion pattern.
07-29 13:50:15.180    2719-2719/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-29 13:50:15,186 ERROR Unrecognized format specifier [thread]
07-29 13:50:15.184    2719-2719/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-29 13:50:15,187 ERROR Unrecognized conversion specifier [thread] 
starting at position 25 in conversion pattern.
07-29 13:50:15.184    2719-2719/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-29 13:50:15,187 ERROR Unrecognized format specifier [level]
07-29 13:50:15.184    2719-2719/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-29 13:50:15,188 ERROR Unrecognized conversion specifier [level] 
starting at position 35 in conversion pattern.
07-29 13:50:15.184    2719-2719/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-29 13:50:15,189 ERROR Unrecognized format specifier [logger]
07-29 13:50:15.184    2719-2719/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-29 13:50:15,189 ERROR Unrecognized conversion specifier [logger] 
starting at position 47 in conversion pattern.
07-29 13:50:15.188    2719-2719/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-29 13:50:15,190 ERROR Unrecognized format specifier [msg]
07-29 13:50:15.188    2719-2719/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-29 13:50:15,191 ERROR Unrecognized conversion specifier [msg] starting 
at position 54 in conversion pattern.
07-29 13:50:15.200    2719-2719/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-29 13:50:15,203 ERROR Unrecognized format specifier [n]
07-29 13:50:15.216    2719-2719/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-29 13:50:15,219 ERROR Unrecognized conversion specifier [n] starting at 
position 56 in conversion pattern.
07-29 13:50:15.236    2719-2719/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-29 13:50:15,236 DEBUG Started configuration 
XmlConfiguration[location=jar:file:/data/app/com.torointl.log4j2xtest-2.apk!/assets/log4j2.xml]
 OK.
07-29 13:50:15.248    2719-2719/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-29 13:50:15,251 TRACE Stopping 
org.apache.logging.log4j.core.config.DefaultConfiguration@527e5a48...
07-29 13:50:15.264    2719-2719/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-29 13:50:15,266 TRACE AbstractConfiguration stopped 0 
AsyncLoggerConfigs.
07-29 13:50:15.280    2719-2719/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-29 13:50:15,281 TRACE AbstractConfiguration stopped 0 AsyncAppenders.
07-29 13:50:15.296    2719-2719/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-29 13:50:15,296 TRACE AbstractConfiguration stopped 1 Appenders.
07-29 13:50:15.308    2719-2719/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-29 13:50:15,310 TRACE AbstractConfiguration stopped 0 Loggers.
07-29 13:50:15.324    2719-2719/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-29 13:50:15,325 DEBUG Stopped 
org.apache.logging.log4j.core.config.DefaultConfiguration@527e5a48 OK
07-29 13:50:15.328    2719-2719/com.torointl.log4j2xtest W/dalvikvm﹕ VFY: 
unable to find class referenced in signature (Ljavax/management/MBeanServer;)
07-29 13:50:15.332    2719-2719/com.torointl.log4j2xtest W/dalvikvm﹕ VFY: 
unable to find class referenced in signature (Ljavax/management/ObjectName;)
07-29 13:50:15.336    2719-2719/com.torointl.log4j2xtest D/dalvikvm﹕ 
GC_FOR_ALLOC freed 475K, 15% free 3029K/3556K, paused 3ms, total 3ms
07-29 13:50:15.336    2719-2719/com.torointl.log4j2xtest I/dalvikvm﹕ Could not 
find method javax.management.MBeanServer.registerMBean, referenced from method 
org.apache.logging.log4j.core.jmx.Server.register
07-29 13:50:15.336    2719-2719/com.torointl.log4j2xtest W/dalvikvm﹕ VFY: 
unable to resolve interface method 16514: 
Ljavax/management/MBeanServer;.registerMBean 
(Ljava/lang/Object;Ljavax/management/ObjectName;)Ljavax/management/ObjectInstance;
07-29 13:50:15.336    2719-2719/com.torointl.log4j2xtest D/dalvikvm﹕ VFY: 
replacing opcode 0x72 at 0x000d
07-29 13:50:15.336    2719-2719/com.torointl.log4j2xtest W/dalvikvm﹕ VFY: 
unable to find class referenced in signature (Ljavax/management/MBeanServer;)
07-29 13:50:15.340    2719-2719/com.torointl.log4j2xtest W/dalvikvm﹕ VFY: 
unable to find class referenced in signature (Ljavax/management/ObjectName;)
07-29 13:50:15.340    2719-2719/com.torointl.log4j2xtest W/dalvikvm﹕ VFY: 
unable to find class referenced in signature (Ljavax/management/MBeanServer;)
07-29 13:50:15.340    2719-2719/com.torointl.log4j2xtest W/dalvikvm﹕ VFY: 
unable to find class referenced in signature (Ljavax/management/ObjectName;)
07-29 13:50:15.340    2719-2719/com.torointl.log4j2xtest W/dalvikvm﹕ VFY: 
unable to find class referenced in signature (Ljavax/management/ObjectName;)
07-29 13:50:15.340    2719-2719/com.torointl.log4j2xtest W/dalvikvm﹕ VFY: 
unable to find class referenced in signature (Ljavax/management/MBeanServer;)
07-29 13:50:15.340    2719-2719/com.torointl.log4j2xtest W/dalvikvm﹕ VFY: 
unable to find class referenced in signature (Ljavax/management/ObjectName;)
07-29 13:50:15.340    2719-2719/com.torointl.log4j2xtest W/dalvikvm﹕ VFY: 
unable to find class referenced in signature (Ljavax/management/MBeanServer;)
07-29 13:50:15.340    2719-2719/com.torointl.log4j2xtest W/dalvikvm﹕ VFY: 
unable to find class referenced in signature (Ljavax/management/ObjectName;)
07-29 13:50:15.340    2719-2719/com.torointl.log4j2xtest W/dalvikvm﹕ VFY: 
unable to find class referenced in signature (Ljavax/management/MBeanServer;)
07-29 13:50:15.340    2719-2719/com.torointl.log4j2xtest W/dalvikvm﹕ VFY: 
unable to find class referenced in signature (Ljavax/management/ObjectName;)
07-29 13:50:15.344    2719-2719/com.torointl.log4j2xtest W/dalvikvm﹕ VFY: 
unable to find class referenced in signature (Ljavax/management/MBeanServer;)
07-29 13:50:15.344    2719-2719/com.torointl.log4j2xtest W/dalvikvm﹕ VFY: 
unable to find class referenced in signature (Ljavax/management/ObjectName;)
07-29 13:50:15.344    2719-2719/com.torointl.log4j2xtest W/dalvikvm﹕ VFY: 
unable to find class referenced in signature (Ljavax/management/MBeanServer;)
07-29 13:50:15.344    2719-2719/com.torointl.log4j2xtest W/dalvikvm﹕ VFY: 
unable to find class referenced in signature (Ljavax/management/ObjectName;)
07-29 13:50:15.344    2719-2719/com.torointl.log4j2xtest W/dalvikvm﹕ VFY: 
unable to find class referenced in signature (Ljavax/management/ObjectName;)
07-29 13:50:15.344    2719-2719/com.torointl.log4j2xtest W/dalvikvm﹕ VFY: 
unable to find class referenced in signature (Ljavax/management/MBeanServer;)
07-29 13:50:15.344    2719-2719/com.torointl.log4j2xtest W/dalvikvm﹕ VFY: 
unable to find class referenced in signature (Ljavax/management/ObjectName;)
07-29 13:50:15.344    2719-2719/com.torointl.log4j2xtest W/dalvikvm﹕ VFY: 
unable to find class referenced in signature (Ljavax/management/ObjectName;)
07-29 13:50:15.344    2719-2719/com.torointl.log4j2xtest W/dalvikvm﹕ VFY: 
unable to find class referenced in signature (Ljavax/management/MBeanServer;)
07-29 13:50:15.344    2719-2719/com.torointl.log4j2xtest W/dalvikvm﹕ VFY: 
unable to find class referenced in signature (Ljavax/management/ObjectName;)
07-29 13:50:15.344    2719-2719/com.torointl.log4j2xtest W/dalvikvm﹕ VFY: 
unable to find class referenced in signature (Ljavax/management/MBeanServer;)
07-29 13:50:15.348    2719-2719/com.torointl.log4j2xtest W/dalvikvm﹕ Unable to 
resolve superclass of Lorg/apache/logging/log4j/core/jmx/StatusLoggerAdmin; 
(1975)
07-29 13:50:15.348    2719-2719/com.torointl.log4j2xtest W/dalvikvm﹕ Link of 
class 'Lorg/apache/logging/log4j/core/jmx/StatusLoggerAdmin;' failed
07-29 13:50:15.348    2719-2719/com.torointl.log4j2xtest E/dalvikvm﹕ Could not 
find class 'org.apache.logging.log4j.core.jmx.StatusLoggerAdmin', referenced 
from method org.apache.logging.log4j.core.jmx.Server.registerStatusLogger
07-29 13:50:15.348    2719-2719/com.torointl.log4j2xtest W/dalvikvm﹕ VFY: 
unable to resolve new-instance 3422 
(Lorg/apache/logging/log4j/core/jmx/StatusLoggerAdmin;) in 
Lorg/apache/logging/log4j/core/jmx/Server;
07-29 13:50:15.348    2719-2719/com.torointl.log4j2xtest D/dalvikvm﹕ VFY: 
replacing opcode 0x22 at 0x0000
07-29 13:50:15.348    2719-2719/com.torointl.log4j2xtest I/dalvikvm﹕ Could not 
find method java.lang.management.ManagementFactory.getPlatformMBeanServer, 
referenced from method 
org.apache.logging.log4j.core.jmx.Server.reregisterMBeansAfterReconfigure
07-29 13:50:15.348    2719-2719/com.torointl.log4j2xtest W/dalvikvm﹕ VFY: 
unable to resolve static method 14858: 
Ljava/lang/management/ManagementFactory;.getPlatformMBeanServer 
()Ljavax/management/MBeanServer;
07-29 13:50:15.348    2719-2719/com.torointl.log4j2xtest D/dalvikvm﹕ VFY: 
replacing opcode 0x71 at 0x0010
07-29 13:50:15.348    2719-2719/com.torointl.log4j2xtest W/dalvikvm﹕ VFY: 
unable to find class referenced in signature (Ljavax/management/MBeanServer;)
07-29 13:50:15.348    2719-2719/com.torointl.log4j2xtest W/dalvikvm﹕ VFY: 
unable to find class referenced in signature (Ljavax/management/MBeanServer;)
07-29 13:50:15.352    2719-2719/com.torointl.log4j2xtest W/dalvikvm﹕ Unable to 
resolve superclass of Lorg/apache/logging/log4j/core/jmx/LoggerContextAdmin; 
(1975)
07-29 13:50:15.352    2719-2719/com.torointl.log4j2xtest W/dalvikvm﹕ Link of 
class 'Lorg/apache/logging/log4j/core/jmx/LoggerContextAdmin;' failed
07-29 13:50:15.352    2719-2719/com.torointl.log4j2xtest E/dalvikvm﹕ Could not 
find class 'org.apache.logging.log4j.core.jmx.LoggerContextAdmin', referenced 
from method 
org.apache.logging.log4j.core.jmx.Server.reregisterMBeansAfterReconfigure
07-29 13:50:15.352    2719-2719/com.torointl.log4j2xtest W/dalvikvm﹕ VFY: 
unable to resolve new-instance 3417 
(Lorg/apache/logging/log4j/core/jmx/LoggerContextAdmin;) in 
Lorg/apache/logging/log4j/core/jmx/Server;
07-29 13:50:15.352    2719-2719/com.torointl.log4j2xtest D/dalvikvm﹕ VFY: 
replacing opcode 0x22 at 0x0042
07-29 13:50:15.352    2719-2719/com.torointl.log4j2xtest W/dalvikvm﹕ VFY: 
unable to find class referenced in signature (Ljavax/management/MBeanServer;)
07-29 13:50:15.352    2719-2719/com.torointl.log4j2xtest E/dalvikvm﹕ Could not 
find class 'javax.management.ObjectName', referenced from method 
org.apache.logging.log4j.core.jmx.Server.unregisterAllMatching
07-29 13:50:15.352    2719-2719/com.torointl.log4j2xtest W/dalvikvm﹕ VFY: 
unable to resolve new-instance 1977 (Ljavax/management/ObjectName;) in 
Lorg/apache/logging/log4j/core/jmx/Server;
07-29 13:50:15.352    2719-2719/com.torointl.log4j2xtest D/dalvikvm﹕ VFY: 
replacing opcode 0x22 at 0x0000
07-29 13:50:15.352    2719-2719/com.torointl.log4j2xtest W/dalvikvm﹕ VFY: 
unable to find class referenced in signature (Ljavax/management/MBeanServer;)
07-29 13:50:15.356    2719-2719/com.torointl.log4j2xtest W/dalvikvm﹕ VFY: 
unable to find class referenced in signature (Ljavax/management/MBeanServer;)
07-29 13:50:15.356    2719-2719/com.torointl.log4j2xtest W/dalvikvm﹕ VFY: 
unable to find class referenced in signature (Ljavax/management/MBeanServer;)
07-29 13:50:15.356    2719-2719/com.torointl.log4j2xtest W/dalvikvm﹕ VFY: 
unable to find class referenced in signature (Ljavax/management/MBeanServer;)
07-29 13:50:15.356    2719-2719/com.torointl.log4j2xtest W/dalvikvm﹕ VFY: 
unable to find class referenced in signature (Ljavax/management/MBeanServer;)
07-29 13:50:15.356    2719-2719/com.torointl.log4j2xtest W/dalvikvm﹕ VFY: 
unable to find class referenced in signature (Ljavax/management/MBeanServer;)
07-29 13:50:15.356    2719-2719/com.torointl.log4j2xtest W/dalvikvm﹕ VFY: 
unable to find class referenced in signature (Ljavax/management/MBeanServer;)
07-29 13:50:15.356    2719-2719/com.torointl.log4j2xtest W/dalvikvm﹕ VFY: 
unable to find class referenced in signature (Ljavax/management/MBeanServer;)
07-29 13:50:15.356    2719-2719/com.torointl.log4j2xtest W/dalvikvm﹕ VFY: 
unable to find class referenced in signature (Ljavax/management/MBeanServer;)
07-29 13:50:15.360    2719-2719/com.torointl.log4j2xtest W/dalvikvm﹕ VFY: 
unable to find class referenced in signature (Ljavax/management/MBeanServer;)
07-29 13:50:15.360    2719-2719/com.torointl.log4j2xtest W/dalvikvm﹕ VFY: 
unable to find class referenced in signature (Ljavax/management/MBeanServer;)
07-29 13:50:15.360    2719-2719/com.torointl.log4j2xtest W/dalvikvm﹕ VFY: 
unable to find class referenced in signature (Ljavax/management/MBeanServer;)
07-29 13:50:15.360    2719-2719/com.torointl.log4j2xtest W/dalvikvm﹕ VFY: 
unable to find class referenced in signature (Ljavax/management/MBeanServer;)
07-29 13:50:15.360    2719-2719/com.torointl.log4j2xtest W/dalvikvm﹕ VFY: 
unable to find class referenced in signature (Ljavax/management/MBeanServer;)
07-29 13:50:15.360    2719-2719/com.torointl.log4j2xtest I/dalvikvm﹕ Could not 
find method java.lang.management.ManagementFactory.getPlatformMBeanServer, 
referenced from method 
org.apache.logging.log4j.core.jmx.Server.unregisterLoggerContext
07-29 13:50:15.360    2719-2719/com.torointl.log4j2xtest W/dalvikvm﹕ VFY: 
unable to resolve static method 14858: 
Ljava/lang/management/ManagementFactory;.getPlatformMBeanServer 
()Ljavax/management/MBeanServer;
07-29 13:50:15.360    2719-2719/com.torointl.log4j2xtest D/dalvikvm﹕ VFY: 
replacing opcode 0x71 at 0x0000
07-29 13:50:15.360    2719-2719/com.torointl.log4j2xtest W/dalvikvm﹕ VFY: 
unable to find class referenced in signature (Ljavax/management/MBeanServer;)
07-29 13:50:15.360    2719-2719/com.torointl.log4j2xtest W/dalvikvm﹕ VFY: 
unable to find class referenced in signature (Ljavax/management/MBeanServer;)
07-29 13:50:15.360    2719-2719/com.torointl.log4j2xtest W/dalvikvm﹕ VFY: 
unable to find class referenced in signature (Ljavax/management/MBeanServer;)
07-29 13:50:15.364    2719-2719/com.torointl.log4j2xtest W/dalvikvm﹕ VFY: 
unable to find class referenced in signature (Ljavax/management/MBeanServer;)
07-29 13:50:15.364    2719-2719/com.torointl.log4j2xtest W/dalvikvm﹕ VFY: 
unable to find class referenced in signature (Ljavax/management/MBeanServer;)
07-29 13:50:15.364    2719-2719/com.torointl.log4j2xtest W/dalvikvm﹕ VFY: 
unable to find class referenced in signature (Ljavax/management/MBeanServer;)
07-29 13:50:15.364    2719-2719/com.torointl.log4j2xtest W/dalvikvm﹕ VFY: 
unable to find class referenced in signature (Ljavax/management/MBeanServer;)
07-29 13:50:15.364    2719-2719/com.torointl.log4j2xtest W/dalvikvm﹕ VFY: 
unable to find class referenced in signature (Ljavax/management/MBeanServer;)
07-29 13:50:15.364    2719-2719/com.torointl.log4j2xtest W/dalvikvm﹕ VFY: 
unable to find class referenced in signature (Ljavax/management/MBeanServer;)
07-29 13:50:15.364    2719-2719/com.torointl.log4j2xtest I/dalvikvm﹕ Could not 
find method java.lang.management.ManagementFactory.getPlatformMBeanServer, 
referenced from method org.apache.logging.log4j.core.jmx.Server.unregisterMBeans
07-29 13:50:15.364    2719-2719/com.torointl.log4j2xtest W/dalvikvm﹕ VFY: 
unable to resolve static method 14858: 
Ljava/lang/management/ManagementFactory;.getPlatformMBeanServer 
()Ljavax/management/MBeanServer;
07-29 13:50:15.364    2719-2719/com.torointl.log4j2xtest D/dalvikvm﹕ VFY: 
replacing opcode 0x71 at 0x0000
07-29 13:50:15.364    2719-2719/com.torointl.log4j2xtest W/dalvikvm﹕ VFY: 
unable to find class referenced in signature (Ljavax/management/MBeanServer;)
07-29 13:50:15.364    2719-2719/com.torointl.log4j2xtest W/dalvikvm﹕ VFY: 
unable to find class referenced in signature (Ljavax/management/MBeanServer;)
07-29 13:50:15.368    2719-2719/com.torointl.log4j2xtest W/dalvikvm﹕ VFY: 
unable to find class referenced in signature (Ljavax/management/MBeanServer;)
07-29 13:50:15.368    2719-2719/com.torointl.log4j2xtest W/dalvikvm﹕ VFY: 
unable to find class referenced in signature (Ljavax/management/MBeanServer;)
07-29 13:50:15.368    2719-2719/com.torointl.log4j2xtest W/dalvikvm﹕ VFY: 
unable to find class referenced in signature (Ljavax/management/MBeanServer;)
07-29 13:50:15.368    2719-2719/com.torointl.log4j2xtest W/dalvikvm﹕ VFY: 
unable to find class referenced in signature (Ljavax/management/MBeanServer;)
07-29 13:50:15.368    2719-2719/com.torointl.log4j2xtest W/dalvikvm﹕ VFY: 
unable to find class referenced in signature (Ljavax/management/MBeanServer;)
07-29 13:50:15.368    2719-2719/com.torointl.log4j2xtest W/dalvikvm﹕ VFY: 
unable to find class referenced in signature (Ljavax/management/MBeanServer;)
07-29 13:50:15.368    2719-2719/com.torointl.log4j2xtest W/dalvikvm﹕ VFY: 
unable to find class referenced in signature (Ljavax/management/MBeanServer;)
07-29 13:50:15.368    2719-2719/com.torointl.log4j2xtest W/dalvikvm﹕ VFY: 
unable to find class referenced in signature (Ljavax/management/MBeanServer;)
07-29 13:50:15.368    2719-2719/com.torointl.log4j2xtest W/dalvikvm﹕ VFY: 
unable to find class referenced in signature (Ljavax/management/MBeanServer;)
07-29 13:50:15.368    2719-2719/com.torointl.log4j2xtest W/dalvikvm﹕ Unable to 
resolve superclass of Lorg/apache/logging/log4j/core/jmx/StatusLoggerAdmin; 
(1975)
07-29 13:50:15.368    2719-2719/com.torointl.log4j2xtest W/dalvikvm﹕ Link of 
class 'Lorg/apache/logging/log4j/core/jmx/StatusLoggerAdmin;' failed
07-29 13:50:15.372    2719-2719/com.torointl.log4j2xtest D/dalvikvm﹕ DexOpt: 
unable to opt direct call 0x715f at 0x02 in 
Lorg/apache/logging/log4j/core/jmx/Server;.registerStatusLogger
07-29 13:50:15.372    2719-2719/com.torointl.log4j2xtest W/dalvikvm﹕ Unable to 
resolve superclass of Lorg/apache/logging/log4j/core/jmx/LoggerContextAdmin; 
(1975)
07-29 13:50:15.372    2719-2719/com.torointl.log4j2xtest W/dalvikvm﹕ Link of 
class 'Lorg/apache/logging/log4j/core/jmx/LoggerContextAdmin;' failed
07-29 13:50:15.372    2719-2719/com.torointl.log4j2xtest D/dalvikvm﹕ DexOpt: 
unable to opt direct call 0x711d at 0x46 in 
Lorg/apache/logging/log4j/core/jmx/Server;.reregisterMBeansAfterReconfigure
07-29 13:50:15.372    2719-2719/com.torointl.log4j2xtest D/dalvikvm﹕ DexOpt: 
unable to opt direct call 0x4088 at 0x02 in 
Lorg/apache/logging/log4j/core/jmx/Server;.unregisterAllMatching
07-29 13:50:15.372    2719-2719/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-29 13:50:15,376 DEBUG JMX disabled for log4j2. Not registering MBeans.
07-29 13:50:15.372    2719-2719/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-29 13:50:15,377 DEBUG Reconfiguration complete for 
context[name=dalvik.system.PathClassLoader[DexPathList[[zip file 
"/data/app/com.torointl.log4j2xtest-2.apk"],nativeLibraryDirectories=[/data/app-lib/com.torointl.log4j2xtest-2,
 /system/lib]]]] at null (org.apache.logging.log4j.core.LoggerContext@527e5758)
07-29 13:50:15.372    2719-2719/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-29 13:50:15,377 DEBUG Shutdown hook enabled. Registering a new one.
07-29 13:50:15.372    2719-2719/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-29 13:50:15,378 DEBUG 
LoggerContext[name=dalvik.system.PathClassLoader[DexPathList[[zip file 
"/data/app/com.torointl.log4j2xtest-2.apk"],nativeLibraryDirectories=[/data/app-lib/com.torointl.log4j2xtest-2,
 /system/lib]]], org.apache.logging.log4j.core.LoggerContext@527e5758] started 
OK.
07-29 13:50:15.376    2719-2719/com.torointl.log4j2xtest I/System.out﹕ 
com.torointl.log4j2xtest.WasabiLogger
07-29 13:50:15.376    2719-2719/com.torointl.log4j2xtest I/System.out﹕ 
2014-07-29 13:50:15,379 DEBUG Using default SystemClock for timestamps
07-29 13:50:15.376    2719-2719/com.torointl.log4j2xtest I/System.out﹕ %d 
[%thread] %-5level %logger - %msg%n
07-29 13:50:15.380    2719-2719/com.torointl.log4j2xtest I/System.out﹕ %d 
[%thread] %-5level %logger - %msg%n
07-29 13:50:15.380    2719-2719/com.torointl.log4j2xtest I/System.out﹕ %d 
[%thread] %-5level %logger - %msg%n
07-29 13:50:15.380    2719-2719/com.torointl.log4j2xtest I/System.out﹕ TEST 
NELSON SOUT ############################################
07-29 13:50:15.384    2719-2719/com.torointl.log4j2xtest I/System.out﹕ %d 
[%thread] %-5level %logger - %msg%n
07-29 13:50:15.384    2719-2719/com.torointl.log4j2xtest I/System.out﹕ %d 
[%thread] %-5level %logger - %msg%n
07-29 13:50:15.384    2719-2719/com.torointl.log4j2xtest I/System.out﹕ %d 
[%thread] %-5level %logger - %msg%n
07-29 13:50:15.388    2719-2719/com.torointl.log4j2xtest I/System.out﹕ %d 
[%thread] %-5level %logger - %msg%n
07-29 13:50:15.388    2719-2719/com.torointl.log4j2xtest I/System.out﹕ %d 
[%thread] %-5level %logger - %msg%n
07-29 13:50:15.392    2719-2719/com.torointl.log4j2xtest I/System.out﹕ %d 
[%thread] %-5level %logger - %msg%n
07-29 13:50:15.392    2719-2719/com.torointl.log4j2xtest I/System.out﹕ %d 
[%thread] %-5level %logger - %msg%n
07-29 13:50:15.392    2719-2719/com.torointl.log4j2xtest I/System.out﹕ %d 
[%thread] %-5level %logger - %msg%n
07-29 13:50:15.396    2719-2719/com.torointl.log4j2xtest I/System.out﹕ %d 
[%thread] %-5level %logger - %msg%n
07-29 13:50:15.396    2719-2719/com.torointl.log4j2xtest I/System.out﹕ TEST 
NELSON SOUT2 ############################################
07-29 13:50:15.452    2719-2719/com.torointl.log4j2xtest D/libEGL﹕ loaded 
/system/lib/egl/libEGL_genymotion.so
07-29 13:50:15.452    2719-2719/com.torointl.log4j2xtest D/﹕ 
HostConnection::get() New Host Connection established 0xb93202a0, tid 2719
07-29 13:50:15.480    2719-2719/com.torointl.log4j2xtest D/libEGL﹕ loaded 
/system/lib/egl/libGLESv1_CM_genymotion.so
07-29 13:50:15.480    2719-2719/com.torointl.log4j2xtest D/libEGL﹕ loaded 
/system/lib/egl/libGLESv2_genymotion.so
07-29 13:50:15.520    2719-2719/com.torointl.log4j2xtest W/EGL_genymotion﹕ 
eglSurfaceAttrib not implemented
07-29 13:50:15.520    2719-2719/com.torointl.log4j2xtest E/OpenGLRenderer﹕ 
Getting MAX_TEXTURE_SIZE from GradienCache
07-29 13:50:15.524    2719-2719/com.torointl.log4j2xtest E/OpenGLRenderer﹕ 
MAX_TEXTURE_SIZE: 8192
07-29 13:50:15.528    2719-2719/com.torointl.log4j2xtest E/OpenGLRenderer﹕ 
Getting MAX_TEXTURE_SIZE from Caches::initConstraints()
07-29 13:50:15.528    2719-2719/com.torointl.log4j2xtest E/OpenGLRenderer﹕ 
MAX_TEXTURE_SIZE: 8192
07-29 13:50:15.532    2719-2719/com.torointl.log4j2xtest D/OpenGLRenderer﹕ 
Enabling debug mode 0
07-29 13:50:36.448    2719-2725/com.torointl.log4j2xtest D/dalvikvm﹕ Debugger 
has detached; object registry had 1 entries
07-29 13:50:36.464    2719-2722/com.torointl.log4j2xtest D/dalvikvm﹕ 
GC_CONCURRENT freed 390K, 14% free 3075K/3556K, paused 0ms+1ms, total 8ms
{noFormat}

What i don't understand is this "07-29 13:50:15.176    
2719-2719/com.torointl.log4j2xtest I/System.out﹕ 2014-07-29 13:50:15,181 WARN 
No Loggers were configured, using default. Is the Loggers element missing?"

How is it not finding my loggers ?

I'm thinking to switch to programmatical configuration but it would be nice to 
make it work properly.

> 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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to