For example, configure logback as underlying logging framework:
dependencies { ... runtimeOnly 'ch.qos.logback:logback-classic:1.2.3' }logback.xml (in runtime classpath)
<configuration> <appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender"> <encoder> <pattern>%d{HH:mm:ss.SSS} %-5level %logger{36} - %msg%n</pattern> </encoder> </appender> <root level="DEBUG"> <appender-ref ref="CONSOLE"/> </root> </configuration>
dependencies { ... runtimeOnly 'com.github.tony19:logback-android:1.1.1-8' }assets/logback.xml
<configuration> <appender name="logcat" class="ch.qos.logback.classic.android.LogcatAppender"> <encoder> <pattern>%d{HH:mm:ss.SSS} %-5level %logger{36} - %msg%n</pattern> </encoder> </appender> <root level="DEBUG"> <appender-ref ref="logcat"/> </root> </configuration>Set log level to DEBUG for logging messages mentioned above.