Package-level declarations

Types

Link copied to clipboard
class ConsoleLogWriter(minLevel: LogLevel = LogLevel.DEBUG, formatter: LogFormatter = LogcatLogFormatter().withColor()) : LogWriter

A LogWriter that mimics the Android Logcat output style using println().

Link copied to clipboard
class GLibLogWriter(minLevel: LogLevel = LogLevel.DEBUG) : LogWriter

A LogWriter implementation that uses GLib's g_log for logging.

Link copied to clipboard
interface LogWriter

A LogWriter represents a destination or a mechanism for handling log messages. For example, a LogWriter might print messages to the console, write them to a file, or send them over the network.

Functions

Link copied to clipboard
fun Log.installConsoleLogWriter(minLevelDebug: LogLevel = LogLevel.DEBUG, minLevelRelease: LogLevel = defaultReleaseLogLevel, time: Boolean = true)

Installs this writer for both debug and release builds.

Link copied to clipboard
fun Log.installConsoleLogWriterForDebugBuilds(minLevel: LogLevel = LogLevel.DEBUG, time: Boolean = true)

Installs this writer for debug builds if the application is debuggable.

Link copied to clipboard
fun Log.installConsoleLogWriterForReleaseBuilds(minLevel: LogLevel = defaultReleaseLogLevel, time: Boolean = true)

Installs this writer for release builds if the application is not debuggable.

Link copied to clipboard
fun Log.installGLibLogWriter(minLevelDebug: LogLevel = LogLevel.DEBUG, minLevelRelease: LogLevel = defaultReleaseLogLevel)

Installs this writer for both debug and release builds.

Link copied to clipboard
fun Log.installGLibLogWriterForDebugBuilds(minPriority: LogLevel = LogLevel.DEBUG)

Installs this writer for debug builds if the application is debuggable.

Link copied to clipboard
fun Log.installGLibLogWriterForReleaseBuilds(minPriority: LogLevel = defaultReleaseLogLevel)

Installs this writer for release builds if the application is not debuggable.