logo

class

compiler::CompilerLog

sys::Obj
  compiler::CompilerLog

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

Slots

compilerErr

virtual Void compilerErr(CompilerErr err)

Log a CompilerErr

debug

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

Log an debug level message.

error

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

Log an error level message.

indent

Void indent()

Indent the output.

indentation

Int indentation

Current level of indentation

info

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

Log an info level message.

isDebug

Bool isDebug()

Is debug level enabled

level

LogLevel level

Max severity of log entries to report

log

virtual Void log(LogRecord 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.

make

new make(OutStream out := sys::Sys.out())

Construct for specified output stream.

out

OutStream out

Sink for all output

print

CompilerLog print(Obj s)

Print a string without trailing newline.

printLine

CompilerLog printLine(Obj s := "")

Print a line.

unindent

Void unindent()

Unindent the output.

warn

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

Log a warn level message.