logo

const class

sys::LogRecord

sys::Obj
  sys::LogRecord

LogRecord all the information of a single logging event. See docLang::Logging for details.

Slots

err

const Err err

Exception if applicable

level

const LogLevel level

Severity level of event

logName

const Str logName

Name of Log which generated the event

make

new make(DateTime time, LogLevel level, Str logName, Str message, Err err := null)

Constructor with all the fields

message

const Str message

Severity level of event

print

Str print(OutStream out := sys::Sys.out())

Print to the specified output stream.

time

const DateTime time

Timestamp of log event

toStr

override Str toStr()

Return standard log format.