IMessageBuilder
interface IMessageBuilder
An interface for building messages using a simple DSL.
Alongside build and the string invocation operator, this interface exposes shorthand properties for commonly used log levels. These are intended to be passed into String.invoke inside the builder block:
logI {
"Header"()
"Something failed"(E)
"Extra details"(D)
}Content copied to clipboard
Properties
Link copied to clipboard
Shorthand for Level.Debug when tagging a DSL line with the debug level.
Link copied to clipboard
Shorthand for Level.Error when tagging a DSL line with the error level.
Link copied to clipboard
Shorthand for Level.Info when tagging a DSL line with the info level.
Link copied to clipboard
Shorthand for Level.Verbose when tagging a DSL line with the verbose level.
Link copied to clipboard
Shorthand for Level.Warn when tagging a DSL line with the warning level.