Skip to main content

Route base messages and warnings into the prolfquapp logger

Description

Installs global calling handlers so that any ‘message()’ or ‘warning()’ signalled by prolfqua core, prolfquapp, or their dependencies is re-emitted through [logger::log_info()] / [logger::log_warn()] with the standard ‘INFO [timestamp]’ layout and captured by the active log appender, instead of printing as an untagged line on ‘stderr’. Also sets ‘options(readr.show_col_types = FALSE)’ so readr’s column-specification output (‘Rows: .. Columns: ..’, delimiter, ‘Use spec()’ hints) is silenced – pure noise in batch runs.

Usage

route_messages_to_logger()

Details

Call once near the top of a command-line entry script, after the initial [logger::log_appender()] setup. This is intended for the prolfquapp CLI entry points; library and interactive callers keep the default ‘message()’ / ‘warning()’ behaviour.

Value

Invisibly ‘NULL’; called for its side effects.