logging {colorSpec} | R 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 levelERROR
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.
AFATAL
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 )
[Package colorSpec version 1.8-0 Index]