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

Source

level

const LogLevel level

Severity level of event

Source

logName

const Str logName

Name of Log which generated the event

Source

make

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

Constructor with all the fields

Source

message

const Str message

Severity level of event

Source

print

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

Print to the specified output stream.

Source

time

const DateTime time

Timestamp of log event

Source

toStr

override Str toStr()

Return standard log format.

Source