Package: lgr 0.4.5.9000

lgr: A Fully Featured Logging Framework

A flexible, feature-rich yet light-weight logging framework based on 'R6' classes. It supports hierarchical loggers, custom log levels, arbitrary data fields in log events, logging to plaintext, 'JSON', (rotating) files, memory buffers. For extra appenders that support logging to databases, email and push notifications see the the package lgr.app.

Authors:Stefan Fleck [aut, cre]

lgr_0.4.5.9000.tar.gz
lgr_0.4.5.9000.zip(r-4.5)lgr_0.4.5.9000.zip(r-4.4)lgr_0.4.5.9000.zip(r-4.3)
lgr_0.4.5.9000.tgz(r-4.4-any)lgr_0.4.5.9000.tgz(r-4.3-any)
lgr_0.4.5.9000.tar.gz(r-4.5-noble)lgr_0.4.5.9000.tar.gz(r-4.4-noble)
lgr_0.4.5.9000.tgz(r-4.4-emscripten)lgr_0.4.5.9000.tgz(r-4.3-emscripten)
lgr.pdf |lgr.html
lgr/json (API)
NEWS

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

Peer review:

Bug tracker:https://github.com/s-fleck/lgr/issues

On CRAN:

log4jloggingr6

10.74 score 81 stars 90 packages 121 scripts 10k downloads 1 mentions 69 exports 1 dependencies

Last updated 4 months agofrom:96d8a1ff58. Checks:OK: 7. Indexed: yes.

TargetResultDate
Doc / VignettesOKOct 08 2024
R-4.5-winOKOct 08 2024
R-4.5-linuxOKOct 08 2024
R-4.4-winOKOct 08 2024
R-4.4-macOKOct 08 2024
R-4.3-winOKOct 08 2024
R-4.3-macOKOct 08 2024

Exports:.objadd_appenderadd_log_levelsAppenderAppenderBufferAppenderConsoleAppenderFileAppenderFileRotatingAppenderFileRotatingDateAppenderFileRotatingTimeAppenderJsonAppenderMemoryAppenderTableas_event_listas_LogEventas_logger_configas.data.table.event_listbasic_configCannotInitializeAbstractClassErrorcolorize_levelsconsole_thresholddefault_exception_handlerevent_listEventFilterFilterableFilterForceLevelFilterInjectget_callerget_log_levelsget_loggerget_logger_glueget_useris_filteris_log_levelis_log_levelsis_thresholdlabel_levelsLayoutLayoutFormatLayoutGlueLayoutJsonlgrlog_exceptionLogEventLoggerlogger_indexlogger_treeLoggerGluepad_leftpad_rightread_json_linesremove_appenderremove_log_levelsshow_datashow_dtshow_logstandardize_log_levelstandardize_log_levelsstandardize_thresholdstring_reprsuspend_loggingthresholdunlabel_levelsunsuspend_logginguse_loggerwith_log_levelwith_log_valuewith_loggingwithout_logging

Dependencies:R6

lgr: A fully featured logging framework for R

Rendered fromlgr.Rmdusingknitr::rmarkdownon Oct 08 2024.

Last update: 2023-03-04
Started: 2018-12-28

Readme and manuals

Help Manual

Help pageTopics
Log to a memory bufferAppenderBuffer
Log to the consoleAppenderConsole
Log to a fileAppenderFile AppenderJson
Log to a rotating fileAppenderFileRotating
Log to a date-stamped rotating fileAppenderFileRotatingDate
Log to a time-stamped rotating fileAppenderFileRotatingTime
Abstract class for logging to memory buffersAppenderMemory
Abstract class for logging to tabular structuresAppenderTable
Coerce objects to LogEventas_LogEvent as_LogEvent.data.frame as_LogEvent.list
Coerce LogEvents to Data Framesas.data.frame.LogEvent as.data.table.LogEvent as_tibble.LogEvent
Basic Setup for the Logging Systembasic_config
Logger Error ConditionsCannotInitializeAbstractClassError
Colorize Levelscolorize_levels
Demote an exception to a warningdefault_exception_handler
A List of LogEventsas.data.frame.event_list as.data.table.event_list as_event_list as_event_list.data.frame as_event_list.list as_event_list.LogEvent event_list
Event Filters.obj EventFilter Filter
Abstract Class for FilterablesFilterable
Override the log level of all events processed by a Logger/AppenderFilterForceLevel
Inject values into all events processed by a Logger/AppenderFilterInject
Information About the Systemget_caller get_user system_infos
Manage Log Levelsadd_log_levels get_log_levels log_level log_levels remove_log_levels
Get/Create a Loggerget_logger get_logger_glue
Check if an R Object is a Filteris_filter
Label/Unlabel Log Levelslabel_levels unlabel_levels
Abstract Class for LayoutsLayout Layouts
Format Log Events as TextLayoutFormat
Format Log Events as Text via glueLayoutGlue
Format LogEvents as JSONLayoutJson
LogEvents - The atomic unit of loggingLogEvent LogEvents
LoggersLogger Loggers
Logger Configuration Objectsas_logger_config as_logger_config.character as_logger_config.list logger_config
Return a data.frame of all registered loggerslogger_index
Logger Treelogger_tree
LoggerGlueLoggerGlue
Pad Character Vectorspad_left pad_right
Print an Appender objectprint.Appender
Print or Format Logging Dataformat.LogEvent print.LogEvent
Print a Logger Objectformat.ancestry format.Logger print.ancestry print.Logger
Print Logger Treesformat.logger_tree print.logger_tree
Read a JSON logfileread_json_lines
Simple Loggingadd_appender console_threshold log_exception remove_appender show_data show_dt show_log simple_logging threshold
Standardize User-Input Log Levels to Their Integer Representationis_log_level is_log_levels is_threshold standardize_log_level standardize_log_levels standardize_threshold
Short string representation for R objectsstring_repr string_repr.data.frame string_repr.default string_repr.function string_repr.matrix
Suspend All Loggingsuspend_logging unsuspend_logging without_logging with_logging
Convert a LogEvent to a character stringtoString.LogEvent
Setup a Simple Logger for a Packageuse_logger
Inject Values into Logging Callswith_log_level with_log_value