appender_tee: Append log messages to a file and stdout as well

View source: R/appenders.R

appender_teeR Documentation

Append log messages to a file and stdout as well

Description

This appends log messages to both console and a file. The same rotation options are available as in appender_file().

Usage

appender_tee(
  file,
  append = TRUE,
  max_lines = Inf,
  max_bytes = Inf,
  max_files = 1L
)

Arguments

file

path

append

boolean passed to cat defining if the file should be overwritten with the most recent log message instead of appending

max_lines

numeric specifying the maximum number of lines allowed in a file before rotating

max_bytes

numeric specifying the maximum number of bytes allowed in a file before rotating

max_files

integer specifying the maximum number of files to be used in rotation

Value

function taking lines argument

See Also

Other log_appenders: appender_async(), appender_console(), appender_file(), appender_kinesis(), appender_pushbullet(), appender_slack(), appender_stdout(), appender_syslog(), appender_telegram()


logger documentation built on Oct. 30, 2024, 9:24 a.m.