LoggerNoop

public class LoggerNoop implements Logger

A Logger instance that prevents all logging.

Properties

Link copied to clipboard
public final static LoggerNoop INSTANCE

Functions

Link copied to clipboard
public final Unit debug(String message, Throwable throwable)

Calls Logger.log message with Debug level.

Link copied to clipboard
public final T duration<T extends Any>(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 Unit error(String message, Throwable throwable)

Calls Logger.log message with Error level.

Link copied to clipboard
public final Unit info(String message, Throwable throwable)

Calls Logger.log message with Info level.

Link copied to clipboard
public Unit log(Level level, String message, Throwable throwable)

Uses level to determine whether it should be passed to the underlying implementation. Implementations are free to use whichever level they like.

Link copied to clipboard
public final Unit verbose(String message, Throwable throwable)

Calls Logger.log message with Verbose level.

Link copied to clipboard
public final Unit warning(String message, Throwable throwable)

Calls Logger.log message with Warning level.