Log

Logging utilities

Setup example:

// use stderror for logging
setStderrLogger();
// set log level
setLogLevel(LogLeve.Debug);

Logging example:

// log debug message
Log.d("mouse clicked at ", x, ",", y);
// log error message
Log.e("exception while reading file", e);

Members

Static functions

d
void d(S args)

Log debug message

e
void e(S args)

Log error message

f
void f(S args)

Log fatal error message

i
void i(S args)

Log info message

log
void log(LogLevel level, S args)

Log message with arbitrary log level

logLevelName
string logLevelName(LogLevel level)

Log level to name helper function

setFileLogger
void setFileLogger(File file)

Redirects output to file

setLogLevel
void setLogLevel(LogLevel level)

Sets log level (one of LogLevel)

setStderrLogger
void setStderrLogger()

Redirects output to stderr

setStdoutLogger
void setStdoutLogger()

Redirects output to stdout

v
void v(S args)

Log verbose / trace message

w
void w(S args)

Log warn message

Meta