How to configure java.util.logging on Android?

前端 未结 5 2014
星月不相逢
星月不相逢 2020-12-04 11:49

I want to use java.util.logging on Android. I want to configure the logging system with logging.properties. But how can I tell Android using the specific configure file? For

5条回答
  •  庸人自扰
    2020-12-04 12:09

    At least on Android 4.3, with unchanged Handler, if you use

    adb shell setprop log.tag.YOURTAG DEBUG
    

    You can see messages logged with up to Level.FINE in logcat. I haven't figured out a way to log higher levels, but that's sufficient for me.

提交回复
热议问题