Description Usage Details Value See Also Examples
View source: R/last_tryCatchLog_result.R
This funktion makes the logging results of all thrown conditions of the last tryCatchLog
or tryLog
call
available in a structured form (data.frame
).
1 |
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 the logging framework, 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.
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
execution.context.msg - text identifier (eg. the PID or a variable value)
as passed as argument to tryCatchLog
or tryLog
to make it easier to identify the runtime state that caused
a condition esp. in parallel execution scenarios
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.
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.