Fantom

 

const class

sys::LogRec

sys::Obj
  sys::LogRec

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

Slots

errSource

const Err? err

Exception if applicable

levelSource

const LogLevel level

Severity level of event

logNameSource

const Str logName

Name of Log which generated the event

makeSource

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

Constructor with all the fields

msgSource

const Str msg

Message text event

printSource

Void print(OutStream out := Env.cur().out())

Print to the specified output stream.

timeSource

const DateTime time

Timestamp of log event

toStrSource

override Str toStr()

Overrides sys::Obj.toStr

Return standard log format.