Decrease ORMlite's internal log verbosity or disable it

后端 未结 3 1059
-上瘾入骨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:05

    For me I used ORMLite in my project (not with android). there I used the logback.xml to configure it.

    http://ormlite.com/javadoc/ormlite-core/doc-files/ormlite_5.html

    If that class is not found it then looks for org.apache.log4j.Logger and if found will use Log4j.

    So we can simply use logback.xml as bellow.

    
        
            
                %d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n
            
        
    
        
            
        
    
        
            
        
    
    

提交回复
热议问题