LoggerScopeKt

public final class LoggerScopeKt

Functions

Link copied to clipboard
public final static T scope<T extends Any>(LoggerScope $self, String name, Function1<LoggerScope, T> body)

Creates temporary sub-scope of current LoggerScope with custom name post-fixed to the new scope. The sub-scope is discarded once the body invocation is finished.

Link copied to clipboard
public final static T timedScope<T extends Any>(LoggerScope $self, String name, Function0<T> body)

Measures the duration of a scope.