invoke

inline operator fun invoke(message: () -> String)

Logs a message on the info level.

Parameters

message

inlined lambda which will be evaluated only if info logs are currently on. The string result of this function will be created ONLY when needed, reducing the impact of creating new strings at runtime.

See also

Application.LOG_INFO
Application.getLogLevel

inline operator fun invoke(cause: Throwable, message: () -> String)

Logs a message on the info level.

Parameters

cause

its stack trace will be printed.

message

inlined lambda which will be evaluated only if info logs are currently on. The string result of this function will be created ONLY when needed, reducing the impact of creating new strings at runtime.

See also

Application.LOG_INFO
Application.getLogLevel