Skip to content

LogLevel

Deprecated

The OpenSavvy Logger library is deprecated and won't be maintained anymore. We do not plan on deleting the library, but we do not plan on improving it either. We encourage you to switch to another logging library.

Entries

TRACE

DEBUG

INFO

WARN

ERROR

NONE

Types

Companion

object Companion

Properties

debug

val debug: Boolean

true if DEBUG messages should be printed.

entries

Returns a representation of an immutable list of all enum entries, in the order they're declared.

This method may be used to iterate over the enum entries.

error

val error: Boolean

true if ERROR messages should be printed.

info

val info: Boolean

true if INFO messages should be printed.

name

expect val name: String

ordinal

expect val ordinal: Int

trace

val trace: Boolean

true if TRACE messages should be printed.

warn

val warn: Boolean

true if WARN messages should be printed.

Functions

valueOf

fun valueOf(value: String): LogLevel

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Throws

kotlin.IllegalArgumentException

if this enum type has no constant with the specified name

values

Returns an array containing the constants of this enum type, in the order they're declared.

This method may be used to iterate over the constants.