Companion

actual object Companion
expect object Companion
actual object Companion
actual object Companion

Properties

Link copied to clipboard

All log levels

Link copied to clipboard
actual val DEBUG: LogLevel

Debug and above (excludes TRACE). Warning: May log sensitive information.

expect val DEBUG: LogLevel

Logs debug information and all higher severity levels

actual val DEBUG: LogLevel

Logs debug information and all higher severity levels. Includes: DEBUG, INFO, WARN, ERROR

actual val DEBUG: LogLevel
Link copied to clipboard

Default log level (logging disabled)

Link copied to clipboard
actual val ERROR: LogLevel

Only errors

expect val ERROR: LogLevel

Logs only error messages

actual val ERROR: LogLevel

Logs only error messages. Most restrictive level.

actual val ERROR: LogLevel
Link copied to clipboard
actual val INFO: LogLevel

Info, event, warnings, and errors

expect val INFO: LogLevel

Logs informational messages, warnings, and errors

actual val INFO: LogLevel

Logs informational messages, warnings, and errors. Includes: INFO, WARN, ERROR

actual val INFO: LogLevel
Link copied to clipboard
actual val NONE: LogLevel

Logging disabled

expect val NONE: LogLevel

Logging disabled (default)

actual val NONE: LogLevel

Logging is disabled. Default setting.

actual val NONE: LogLevel

Logging disabled (JVM: configure via slf4j)

Link copied to clipboard

Production logging: info, event, warn, error. Recommended for production environments.

Link copied to clipboard
actual val TRACE: LogLevel

Everything including trace. Warning: Logs sensitive information. Never use in production.

expect val TRACE: LogLevel

Most verbose logging level

actual val TRACE: LogLevel

Most verbose logging level. Logs all messages including internal traces. Includes: TRACE, DEBUG, INFO, WARN, ERROR

actual val TRACE: LogLevel
Link copied to clipboard
actual val WARN: LogLevel

Warnings and errors

expect val WARN: LogLevel

Logs warnings and errors

actual val WARN: LogLevel

Logs warnings and errors. Includes: WARN, ERROR

actual val WARN: LogLevel

Functions

Link copied to clipboard
fun custom(vararg levels: LogLevel.Level): LogLevel

Create custom combination of log levels.