Package: logger 0.4.0

logger: A Lightweight, Modern and Flexible Logging Utility

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.

Authors:Gergely Daróczi [aut, cre], Hadley Wickham [aut], System1 [fnd]

logger_0.4.0.tar.gz
logger_0.4.0.zip(r-4.5)logger_0.4.0.zip(r-4.4)logger_0.4.0.zip(r-4.3)
logger_0.4.0.tgz(r-4.4-any)logger_0.4.0.tgz(r-4.3-any)
logger_0.4.0.tar.gz(r-4.5-noble)logger_0.4.0.tar.gz(r-4.4-noble)
logger_0.4.0.tgz(r-4.4-emscripten)logger_0.4.0.tgz(r-4.3-emscripten)
logger.pdf |logger.html
logger/json (API)
NEWS

# Install 'logger' in R:
install.packages('logger', repos = c('https://daroczig.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/daroczig/logger/issues

On CRAN:

16.37 score 290 stars 58 packages 1.5k scripts 53k downloads 6 mentions 72 exports 0 dependencies

Last updated 1 months agofrom:bae848f08b. Checks:OK: 5 NOTE: 2. Indexed: yes.

TargetResultDate
Doc / VignettesOKNov 20 2024
R-4.5-winOKNov 20 2024
R-4.5-linuxOKNov 20 2024
R-4.4-winNOTENov 20 2024
R-4.4-macOKNov 20 2024
R-4.3-winNOTENov 20 2024
R-4.3-macOKNov 20 2024

Exports:%except%appender_asyncappender_consoleappender_fileappender_kinesisappender_pushbulletappender_slackappender_stderrappender_stdoutappender_syslogappender_syslognetappender_teeappender_telegramappender_voidas.loglevelcolorize_by_log_levelDEBUGdelete_logger_indexdeparse_to_one_lineERRORfail_on_missing_packageFATALformatter_glueformatter_glue_or_sprintfformatter_glue_safeformatter_jsonformatter_loggingformatter_panderformatter_pasteformatter_sprintfget_logger_meta_variablesgrayscale_by_log_levelINFOlayout_blanklayout_gluelayout_glue_colorslayout_glue_generatorlayout_jsonlayout_json_parserlayout_logginglayout_simplelayout_syslognetlog_appenderlog_debuglog_errorlog_errorslog_evallog_failurelog_fatallog_formatterlog_indiceslog_infolog_layoutlog_levellog_messageslog_namespaceslog_separatorlog_shiny_input_changeslog_successlog_thresholdlog_tictoclog_tracelog_warnlog_warningslog_with_separatorloggerOFFskip_formatterSUCCESSTRACEWARNwith_log_threshold

Dependencies:

Customizing the Format and the Destination of a Log Record

Rendered fromcustomize_logger.Rmdusingknitr::rmarkdownon Nov 20 2024.

Last update: 2024-08-07
Started: 2018-11-23

Introduction to logger

Rendered fromIntro.Rmdusingknitr::rmarkdownon Nov 20 2024.

Last update: 2024-08-07
Started: 2018-11-24

Logging from R Packages

Rendered fromr_packages.Rmdusingknitr::rmarkdownon Nov 20 2024.

Last update: 2024-08-07
Started: 2018-11-24

Migration Guide

Rendered frommigration.Rmdusingknitr::rmarkdownon Nov 20 2024.

Last update: 2024-09-10
Started: 2018-12-01

Simple Benchmarks on logger Performance

Rendered fromperformance.Rmdusingknitr::rmarkdownon Nov 20 2024.

Last update: 2024-10-09
Started: 2018-11-23

The Anatomy of a Log Request

Rendered fromanatomy.Rmdusingknitr::rmarkdownon Nov 20 2024.

Last update: 2024-08-07
Started: 2018-11-24

Writing Custom Logger Extensions

Rendered fromwrite_custom_extensions.Rmdusingknitr::rmarkdownon Nov 20 2024.

Last update: 2024-08-06
Started: 2018-11-24

Readme and manuals

Help Manual

Help pageTopics
Try to evaluate an expressions and evaluate another expression on exception%except%
Delays executing the actual appender function to the future in a background process to avoid blocking the main R sessionappender_async
Append log record to stderrappender_console appender_stderr
Append log messages to a fileappender_file
Send log messages to a Amazon Kinesis streamappender_kinesis
Send log messages to Pushbulletappender_pushbullet
Send log messages to a Slack channelappender_slack
Append log record to stdoutappender_stdout
Send log messages to the POSIX system logappender_syslog
Send log messages to a network syslog serverappender_syslognet
Append log messages to a file and stdout as wellappender_tee
Send log messages to a Telegram chatappender_telegram
Dummy appender not delivering the log record to anywhereappender_void
Convert R object into a logger log-levelas.loglevel
Color string by the related log levelcolorize_by_log_level grayscale_by_log_level
Delete an index from a logger namespacedelete_logger_index
Deparse and join all lines into a single linedeparse_to_one_line
Check if R package can be loaded and fails loudly otherwisefail_on_missing_package
Apply 'glue' to convert R objects into a character vectorformatter_glue
Apply 'glue' and 'sprintf'formatter_glue_or_sprintf
Apply 'glue_safe' to convert R objects into a character vectorformatter_glue_safe
Transforms all passed R objects into a JSON listformatter_json
Mimic the default formatter used in the 'logging' packageformatter_logging
Formats R objects with panderformatter_pander
Concatenate R objects into a character vector via 'paste'formatter_paste
Apply 'sprintf' to convert R objects into a character vectorformatter_sprintf
Collect useful information about the logging environment to be used in log messagesget_logger_meta_variables
Format a log record by including the raw message without anything added or modifiedlayout_blank
Format a log message with 'glue'layout_glue
Format a log message with 'glue' and ANSI escape codes to add colorslayout_glue_colors
Generate log layout function using common variables available via glue syntaxlayout_glue_generator
Generate log layout function rendering JSONlayout_json
Generate log layout function rendering JSON after merging meta fields with parsed list from JSON messagelayout_json_parser
Format a log record as the logging package does by defaultlayout_logging
Format a log record by concatenating the log level, timestamp and messagelayout_simple
Format a log record for syslognetlayout_syslognet
Get or set log record appender functionlog_appender
Injects a logger call to standard errorslog_errors
Evaluate an expression and log resultslog_eval
Logs the error message to console before failinglog_failure
Get or set log message formatterlog_formatter
Returns number of currently active indiceslog_indices
Get or set log record layoutlog_layout
Log a message with given log levellog_debug log_error log_fatal log_info log_level log_success log_trace log_warn
Log levelsDEBUG ERROR FATAL INFO log_levels OFF SUCCESS TRACE WARN
Injects a logger call to standard messageslog_messages
Looks up logger namespaceslog_namespaces
Logs a long line to stand out from the consolelog_separator
Auto logging input changes in Shiny applog_shiny_input_changes
Get or set log level thresholdlog_threshold
Tic-toc logginglog_tictoc
Injects a logger call to standard warningslog_warnings
Logs a message in a very visible waylog_with_separator
Generate logging utilitylogger
Skip the formatter functionskip_formatter
Evaluate R expression with a temporarily updated log level thresholdwith_log_threshold