LoggerFactory

class LoggerFactory(configSource: () -> LogConfig)(source)

Creates Loggers that read their configuration from one place.

Every kcoap component takes a LoggerFactory (defaulting to Global), so an application can give one endpoint its own configuration, for example to trace a single connection, while the rest follows the global one.

Constructors

Link copied to clipboard
constructor(configSource: () -> LogConfig)
constructor(config: LogConfig)

A factory with a fixed configuration.

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun logger(tag: String): Logger