AndroidTestLogTrainer

class AndroidTestLogTrainer(val minLevel: Level = Level.VERBOSE) : AndroidLogTrainer(source)

The purpose of this AndroidLogTrainer is to allow for the logs to be printed during instrumented test runs via Android Logcat.

Unlike AndroidLogTrainer (Pack.SYSTEM, skips tests), this trainer is categorized as Pack.TEST and is designed specifically for use during instrumented test runs.

Since

0.0.1

Parameters

minLevel

Minimum log level to output (defaults to Level.VERBOSE - shows all)

Constructors

Link copied to clipboard
constructor(minLevel: Level = Level.VERBOSE)

Properties

Link copied to clipboard
open override val minLevel: Level
Link copied to clipboard
open override val pack: Pack

The Pack that this Trainer belongs to, which will be used to find duplicative trainers and avoid duplicative log messages.

Functions

Link copied to clipboard
open override fun handle(level: Level, tag: String, message: String, throwable: Throwable?)

Handle a log message by outputting it to Android Logcat.

Link copied to clipboard
open override fun skipTests(): Boolean

Denote whether we should log while running tests or not - can be overridden by subclasses.