Learn R Programming

colorSpec (version 1.6-0)

logging: 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).

Arguments

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

Run this code
options( colorSpec.stoponerror=TRUE )

# or equivalently
cs.options( stop=TRUE )

Run the code above in your browser using DataLab