registerLogErrorHandler: register log-enabled error handler

View source: R/logger.R

registerLogErrorHandlerR Documentation

register log-enabled error handler

Description

Registers a top-level error handler that makes a log entry and exiting with an error status

Usage

registerLogErrorHandler(logger, die = TRUE)

Arguments

logger

a yogilogger object to be used for logging any fatal errors

die

a logical value indicationg whether the process should exit with an error status upon handling the error. Defaults to TRUE

Details

When an error occurs, the handler will catch it, make a log entry detailing the error message and stack trace, and then exit with an error status (unless overridden with die=FALSE)


jweile/yogilog documentation built on April 7, 2022, 11:38 p.m.