ch.qos.logback.classic.android
Class BasicLogcatConfigurator

java.lang.Object
  extended by ch.qos.logback.classic.android.BasicLogcatConfigurator

public class BasicLogcatConfigurator
extends Object

BasicLogcatConfigurator configures logback-classic by attaching a LogcatAppender to the root logger. The appender's layout is set to a PatternLayout with the pattern "%msg". The equivalent default configuration in XML would be:

 <configuration>
  <appender name="LOGCAT"
           class="ch.qos.logback.classic.android.LogcatAppender" >
      <checkLoggable>false</checkLoggable>
      <encoder>
          <pattern>%msg</pattern>
      </encoder>
  </appender>
  <root level="DEBUG" >
     <appender-ref ref="LOGCAT" />
  </root>
 </configuration>
 

Author:
Anthony Trinh

Method Summary
static void configure(LoggerContext lc)
           
static void configureDefaultContext()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

configure

public static void configure(LoggerContext lc)

configureDefaultContext

public static void configureDefaultContext()


Copyright © 2005-2013 QOS.ch. All Rights Reserved.