invoke

operator fun invoke(name: String, identity: Logger): LoggerScope

Creates an instance of LoggerScope with custom name.

Parameters

name

The name of the scope.

identity

The wrapped Logger.


inline operator fun <T> invoke(identity: Logger): LoggerScope

Creates an instance of LoggerScope with scope set to class simple name.

Parameters

T

The type which will be used for naming of the LoggerScope.

identity

The wrapped Logger.