Description Usage Arguments Value Note See Also Examples
After initializing the level-specific log files with logger.setup(...)
,
this function will generate WARN
level log statements.
1 | logger.warn(msg, ...)
|
msg |
message with format strings applied to additional arguments |
... |
additional arguments to be formatted |
No return value.
All functionality is built on top of the excellent futile.logger package.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | ## Not run:
# Only save three log files
logger.setup(debugLog='debug.log', infoLog='info.log', errorLog='error.log')
# But allow log statements at all levels within the code
logger.trace('trace statement #%d', 1)
logger.debug('debug statement')
logger.info('info statement %s %s', "with", "arguments")
logger.warn('warn statement %s', "about to try something dumb")
result <- try(1/"a", silent=TRUE)
logger.error('error message: %s', geterrmessage())
logger.fatal('fatal statement %s', "THE END")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.