logger0.4.1 package

A Lightweight, Modern and Flexible Logging Utility

colorize_by_log_level

Color string by the related log level

delete_logger_index

Delete an index from a logger namespace

deparse_to_one_line

Deparse and join all lines into a single line

fail_on_missing_package

Check if R package can be loaded and fails loudly otherwise

formatter_cli

Apply cli::cli_text() to format string with cli syntax

formatter_glue_or_sprintf

Apply glue::glue() and sprintf()

formatter_glue_safe

Apply glue::glue_safe() to convert R objects into a character vector

formatter_glue

Apply glue::glue() to convert R objects into a character vector

formatter_json

Transforms all passed R objects into a JSON list

log_eval

Evaluate an expression and log results

log_failure

Logs the error message to console before failing

log_formatter

Get or set log message formatter

log_indices

Returns number of currently active indices

log_layout

Get or set log record layout

log_level

Log a message with given log level

log_levels

Log levels

log_messages

Injects a logger call to standard messages

log_namespaces

Looks up logger namespaces

layout_glue

Format a log message with glue::glue()

layout_json_parser

Generate log layout function rendering JSON after merging meta fields ...

layout_json

Generate log layout function rendering JSON

appender_telegram

Send log messages to a Telegram chat

appender_void

Dummy appender not delivering the log record to anywhere

as.loglevel

Convert R object into a logger log-level

grapes-except-grapes

Try to evaluate an expressions and evaluate another expression on exce...

log_elapsed

Log cumulative running time

log_errors

Injects a logger call to standard errors

logger-package

logger: A Lightweight, Modern and Flexible Logging Utility

appender_async

Delays executing the actual appender function to the future in a backg...

appender_console

Append log record to stderr

appender_file

Append log messages to a file

appender_kinesis

Send log messages to a Amazon Kinesis stream

appender_pushbullet

Send log messages to Pushbullet

appender_slack

Send log messages to a Slack channel

appender_stdout

Append log record to stdout

appender_syslog

Send log messages to the POSIX system log

appender_syslognet

Send log messages to a network syslog server

appender_tee

Append log messages to a file and stdout as well

formatter_logging

Mimic the default formatter used in the logging package

formatter_pander

Formats R objects with pander

formatter_paste

Concatenate R objects into a character vector via paste

formatter_sprintf

Apply sprintf() to convert R objects into a character vector

get_logger_meta_variables

Collect useful information about the logging environment to be used in...

layout_blank

Format a log record by including the raw message without anything adde...

layout_gha

Format a log record for github actions

layout_glue_colors

Format a log message with glue::glue() and ANSI escape codes to add ...

layout_glue_generator

Generate log layout function using common variables available via glue...

layout_logging

Format a log record as the logging package does by default

layout_simple

Format a log record by concatenating the log level, timestamp and mess...

layout_syslognet

Format a log record for syslognet

log_appender

Get or set log record appender function

log_chunk_time

Automatically log execution time of knitr chunks

log_separator

Logs a long line to stand out from the console

log_shiny_input_changes

Auto logging input changes in Shiny app

log_threshold

Get or set log level threshold

log_tictoc

Tic-toc logging

log_warnings

Injects a logger call to standard warnings

log_with_separator

Logs a message in a very visible way

logger

Generate logging utility

skip_formatter

Skip the formatter function

with_log_threshold

Evaluate R expression with a temporarily updated log level threshold

Inspired by the the 'futile.logger' R package and 'logging' Python module, this utility provides a flexible and extensible way of formatting and delivering log messages with low overhead.

  • Maintainer: Gergely Daróczi
  • License: MIT + file LICENSE
  • Last published: 2025-09-11