demo/colors.R

suppressWarnings(suppressMessages(library(logger)))
log_layout(layout_glue_colors)
log_threshold(TRACE)
log_info('Starting the script...')
log_debug('This is the second line')
log_trace('That is being placed right after the first one.')
log_warn('Some errors might come!')
log_error('This is a problem')
log_debug('Getting an error is usually bad')
log_error('This is another problem')
log_fatal('The last problem.')
daroczig/logger documentation built on March 8, 2024, 6:49 p.m.