logging: Logging in colorSpec package

loggingR Documentation

Logging in colorSpec package

Description

Logging is done using the logger package. Logging output goes to stderr(), just like the message stream; but see sink() (and the pitfalls of using it).

Logging Options

colorSpec.stoponerror

If the this option is TRUE (the default), a log event with level ERROR stops execution; otherwise, execution keeps going. For interactive use, TRUE is probably better. For long batch jobs, FALSE might be appropriate, since then a single error may not force a complete repeat.
A FATAL event always stops execution.

For examples on changing this option, see cs.options.

References

Wikipedia. Log4j. https://en.wikipedia.org/wiki/Log4j

See Also

options, cs.options, sink, stderr

Examples

options( colorSpec.stoponerror=TRUE )

# or equivalently
cs.options( stop=TRUE )

colorSpec documentation built on April 4, 2025, 1:59 a.m.