-
public interface StreamLogger
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classStreamLogger.LogLevelRepresents the severity of a log message.
-
Method Summary
Modifier and Type Method Description Unitd(Function0<String> message)Logs a debug message. Unite(Function0<String> message)Logs an error message. Unite(Throwable throwable, Function0<String> message)Logs an error with an optional message. Unitw(Function0<String> message)Logs a warning message. Uniti(Function0<String> message)Logs an informational message. Unitv(Function0<String> message)Logs a verbose message. abstract Unitlog(StreamLogger.LogLevel level, Throwable throwable, Function0<String> message)Logs a message at the given severity level. -
-
Method Detail
-
d
Unit d(Function0<String> message)
Logs a debug message.
- Parameters:
message- A lambda returning the message to log.
-
e
Unit e(Function0<String> message)
Logs an error message.
- Parameters:
message- A lambda returning the message to log.
-
e
Unit e(Throwable throwable, Function0<String> message)
Logs an error with an optional message.
- Parameters:
throwable- The error or exception to log.message- An optional lambda returning a message to include.
-
w
Unit w(Function0<String> message)
Logs a warning message.
- Parameters:
message- A lambda returning the message to log.
-
i
Unit i(Function0<String> message)
Logs an informational message.
- Parameters:
message- A lambda returning the message to log.
-
v
Unit v(Function0<String> message)
Logs a verbose message.
- Parameters:
message- A lambda returning the message to log.
-
log
abstract Unit log(StreamLogger.LogLevel level, Throwable throwable, Function0<String> message)
Logs a message at the given severity level.
- Parameters:
level- The log level at which the message should be logged.throwable- An optional Throwable associated with the log message.message- A lambda returning the message to log.
-
-
-
-