LoggerExtKt

public final class LoggerExtKt

Functions

Link copied to clipboard
public final static Unit debug(Logger $self, String message, Throwable throwable)

Calls Logger.log message with Debug level.

Link copied to clipboard
public final static T duration<T extends Any>(Logger $self, Function0<T> body)

Measures the duration it takes to invoke the body. Logs with Verbose level message Started before the invocation and Finished took XYZms after completion.

Link copied to clipboard
public final static Unit error(Logger $self, String message, Throwable throwable)

Calls Logger.log message with Error level.

Link copied to clipboard
public final static Unit info(Logger $self, String message, Throwable throwable)

Calls Logger.log message with Info level.

Link copied to clipboard
public final static Unit verbose(Logger $self, String message, Throwable throwable)

Calls Logger.log message with Verbose level.

Link copied to clipboard
public final static Unit warning(Logger $self, String message, Throwable throwable)

Calls Logger.log message with Warning level.