Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

Android support of microlog 2.3.5 or 3.0.0-sn

Help
hkais
2011-01-09
2013-04-26
  • hkais
    hkais
    2011-01-09

    Hello all,

    I try to use the microlog 2.3.5 and 3.0.0-SNAPSHOT in Android 1.5. But without success.

    I use the microlog.properties to configure the microlog.

    microlog.rootLogger=TRACE, ConsoleApp
    microlog.formatter=PatternFormatter
    microlog.formatter.PatternFormatter.pattern=%d %P [%t] - %m
    microlog.appender.ConsoleApp=ConsoleAppender
    microlog.appender.ConsoleApp.formatter=PatternFormatter
    microlog.appender.ConsoleApp.formatter.pattern=%d %P [%t] - %m
    
    PropertyConfigurator.configure();
    

    is called very early in the Activity, so microlog is initialized really early in the app.

    Anyway I do not get any Log entry to the console?!?

    Additionally I am getting a warning from Android

    Dxwarning: Ignoring InnerClasses attribute for an anonymous inner class
    (net.sf.microlog.midp.wma.AbstractMessageAppender$1) that doesn't come with an
    associated EnclosingMethod attribute. This class was probably produced by a
    compiler that did not target the modern .class file format. The recommended
    solution is to recompile the class from source, using an up-to-date compiler
    and without specifying any "-target" type options. The consequence of ignoring
    this warning is that reflective operations on this class will incorrectly
    indicate that it is *not* an inner class.
    

    Can anybody help the newbee in android and especially microlog?

    best regards,
    Hans

     
  • Johan Karlsson
    Johan Karlsson
    2011-01-10

    Hi Hans,

    I suggest that you use Microlog4Android, which is the offspring of Microlog especially made for Android.

    http://code.google.com/p/microlog4android/

    Regards
    Johan