Fantom

 

class

compiler::CompilerLog

sys::Obj
  compiler::CompilerLog

CompilerLog manages logging compiler messages. The default writes everything to standard output.

Slots

compilerErrSource

virtual Void compilerErr(CompilerErr err)

Log a CompilerErr

debugSource

Void debug(Str msg, Err? err := null)

Log an debug level message.

errSource

Void err(Str msg, Err? err := null)

Log an error level message.

indentSource

Void indent()

Indent the output.

indentationSource

Int indentation := 0

Current level of indentation

infoSource

Void info(Str msg, Err? err := null)

Log an info level message.

isDebugSource

Bool isDebug()

Is debug level enabled

levelSource

LogLevel level := LogLevel.info

Max severity of log entries to report

logSource

virtual Void log(LogRec rec)

Generate a log entry. The log entry is only generated if the specified level is greater than or equal to the configured level field.

makeSource

new make(OutStream out := Env.cur().out())

Construct for specified output stream.

outSource

OutStream? out := null

Sink for all output

printSource

CompilerLog print(Obj? s)

Print a string without trailing newline.

printLineSource

CompilerLog printLine(Obj? s := "")

Print a line.

unindentSource

Void unindent()

Unindent the output.

warnSource

Void warn(Str msg, Err? err := null)

Log a warn level message.