warn

open suspend fun warn(event: Any?)

Emit a log event at WARN level.

Parameters

event

a representation of the event


open suspend fun warn(template: String, vararg values: Any?)

Emit a log event from a message template at WARN level.

Parameters

values

values associated with holes in the message template


open suspend fun warn(throwable: Throwable, event: Any?)

Emit a log event and associated throwable object at WARN level.

Parameters

throwable

a throwable object associated with this event

event

a representation of the event


open suspend fun warn(throwable: Throwable, template: String, vararg values: Any?)

Emit a log event from a message template and associated throwable object at WARN level.

Parameters

throwable

a throwable object associated with this event

values

values associated with holes in the message template


open suspend fun warn(event: suspend Klogger.() -> Any?)

Emit a log event from a lambda at WARN level.

Parameters

event

lambda that returns a representation of the event


open suspend fun warn(throwable: Throwable, event: suspend Klogger.() -> Any?)

Emit a log event from a lambda and associated throwable object at WARN level.

Parameters

throwable

a throwable object associated with this event

event

lambda that returns a representation of the event


open suspend fun warn(message: String, items: EventItems)

Emit a log event with a message and an explicit map of items at WARN level.

Parameters

message

the message

items

a map of items to include in the log event


open suspend fun warn(message: String, throwable: Throwable, items: EventItems)

Emit a log event with a message, associated throwable object and an explicit map of items at WARN level.

Parameters

message

the message

throwable

a throwable object associated with this event

items

a map of items to include in the log event