Sedona

sys::Log


sys::Obj
  sys::Log

public const class Log

Log is used to embed error, warning, message, and trace logging into Sedona software.


ERROR

public static const define int ERROR

Logging is enabled only for errors

MESSAGE

public static const define int MESSAGE

Logging is enabled for errors, warning, and messages

NONE

public static const define int NONE

Logging is disabled

TRACE

public static const define int TRACE

Logging is enabled for all levels

WARNING

public static const define int WARNING

Logging is enabled for errors and warning

id

public const short id

Index of this log in the Sys.logs array.

qname

public const Str qname

Unique qualified name of this log in the VM.

error

public OutStream error(Str msg)

Log an error record.

isError

public bool isError()

Is current level error or greater.

isMessage

public bool isMessage()

Is current level message or greater.

isTrace

public bool isTrace()

Is current level trace or greater.

isWarning

public bool isWarning()

Is current level warning or greater.

level

public int level()

Get the currently configured severity level enabled for this Log. The level is NONE, ERROR, WARNING, MESSAGE, and TRACE.

message

public OutStream message(Str msg)

Log a message record.

setLevel

public void setLevel(int newLevel)

Set the severity level for this Log. Possible levels are NONE, ERROR, WARNING, MESSAGE, and TRACE. (no error checking on arg)

trace

public OutStream trace(Str msg)

Log a trace record.

warning

public OutStream warning(Str msg)

Log a warning record.