tryCatchLog or tryLogThe last logging result after calling tryCatchLog or tryLog can be retrieved by
calling this function.
last.tryCatchLog.result()the logging result of the last call to tryCatchLog or tryLog
as data.frame comprised of one row per logged condition with these columns:
timestamp - creation date and time of the logging entry
severity - the serverity level of the log entry (ERROR, WARN, INFO etc.)
msg.text - the message text of the log entry
compact.stack.trace - the short stack trace containing only entries with source code references down to line of code that has thrown the condition
full.stack.trace - the full stack trace with all calls down to the line of code that has thrown the condition (including calls to R internal functions and other functions even when the source code in not available).
dump.file.name - name of the created dump file (if any)
If no condition is logged at all an empty data.table is returned.
The typical use case is to get and store the log output not only in a log file but
also in another place that is not supported by futile.logger, e. g. in
a data base table of your application or displaying it in a GUI (user interface).
Another use case is to review the last log output on the console during debugging.
# NOT RUN {
last.tryCatchLog.result()
# }
Run the code above in your browser using DataLab