skip_formatter: Skip the formatter function

View source: R/formatters.R

skip_formatterR Documentation

Skip the formatter function

Description

Adds the skip_formatter attribute to an object so that logger will skip calling the formatter function(s). This is useful if you want to preprocess the log message with a custom function instead of the active formatter function(s). Note that the message should be a string, and skip_formatter should be the only input for the logging function to make this work.

Usage

skip_formatter(message, ...)

Arguments

message

character vector directly passed to the appender function in logger()

...

should be never set

Value

character vector with skip_formatter attribute set to TRUE


daroczig/logger documentation built on Oct. 22, 2024, 12:25 p.m.