LoKdroid

object LoKdroid

A singleton logger object responsible for initializing and managing a LogManager. It provides a centralized logging utility that can be configured and accessed globally throughout an application.

The logger starts with a default configuration and can be overridden at any time using initialize.

Functions

Link copied to clipboard
fun initialize(minLevel: Level = Level.Verbose, logger: ILogger = ConsoleLogger, formatter: IFormatter = IFormatter { message -> message }, tagProvider: () -> String = { TagProvider.getTag() }, multipleLineMessageBuilderFactory: () -> IMessageBuilder = { MultipleLineMessageBuilder() })

Initializes the LoKdroid with a custom configuration, replacing the current LogManager. Calling this function is optional because LoKdroid starts with an equivalent default configuration.