Decrease ORMlite's internal log verbosity or disable it

后端 未结 3 1072
-上瘾入骨i
-上瘾入骨i 2021-01-12 08:47

We\'re doing some heavy performance tuning in our app, hence we start using method tracing to find the bottlenecks.

At first glance Ormlite was fine, but we found t

3条回答
  •  抹茶落季
    2021-01-12 09:18

    ORMLite documentation on Android mentions how to enable the logs over adb: http://ormlite.com/javadoc/ormlite-core/doc-files/ormlite_4.html#Android-Logging

    However, there's no mention how to disable them. From @Axxiss answer, we can see the proper log level is ERROR. Thus, to disable the logs using adb:

    adb shell setprop log.tag.StatementExecutor ERROR
    adb shell setprop log.tag.BaseMappedStatement ERROR
    adb shell setprop log.tag.MappedCreate ERROR
    

提交回复
热议问题