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.

Before using the logging functions, it must be initialized using initialize. Failing to do so will result in a RuntimeException when trying to log.

Functions

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

Initializes the LoKdroid with a custom configuration. If not called, LoKdroid will not perform any logging operations.