Learn R Programming

logger (version 0.2.2)

log_separator: Logs a long line to stand out from the console

Description

Logs a long line to stand out from the console

Usage

log_separator(
  level = INFO,
  namespace = NA_character_,
  separator = "=",
  width = 80
)

Arguments

level

log level, see log_levels for more details

namespace

string referring to the logger environment / config to be used to override the target of the message record to be used instead of the default namespace, which is defined by the R package name from which the logger was called, and falls back to a common, global namespace.

separator

character to be used as a separator

width

max width of message -- longer text will be wrapped into multiple lines

See Also

log_with_separator

Examples

Run this code
log_separator()
log_separator(ERROR, separator = '!', width = 60)

Run the code above in your browser using DataLab