Package: loggit 2.1.1.9999

loggit: Modern Logging for the R Ecosystem

An effortless 'ndjson' (newline-delimited 'JSON') logger, with two primary log-writing interfaces. It provides a set of wrappings for base R's message(), warning(), and stop() functions that maintain identical functionality, but also log the handler message to an 'ndjson' log file. 'loggit' also exports its internal 'loggit()' function for powerful and configurable custom logging. No change in existing code is necessary to use this package, and should only require additions to fully leverage the power of the logging system. 'loggit' also provides a log reader for reading an 'ndjson' log file into a data frame, log rotation, and live echo of the 'ndjson' log messages to terminal 'stdout' for log capture by external systems (like containers). 'loggit' is ideal for Shiny apps, data pipelines, modeling work flows, and more. Please see the vignettes for detailed example use cases.

Authors:Ryan Price [cre, aut]

loggit_2.1.1.9999.tar.gz
loggit_2.1.1.9999.zip(r-4.5)loggit_2.1.1.9999.zip(r-4.4)loggit_2.1.1.9999.zip(r-4.3)
loggit_2.1.1.9999.tgz(r-4.4-any)loggit_2.1.1.9999.tgz(r-4.3-any)
loggit_2.1.1.9999.tar.gz(r-4.5-noble)loggit_2.1.1.9999.tar.gz(r-4.4-noble)
loggit_2.1.1.9999.tgz(r-4.4-emscripten)loggit_2.1.1.9999.tgz(r-4.3-emscripten)
loggit.pdf |loggit.html
loggit/json (API)
NEWS

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

Peer review:

Bug tracker:https://github.com/ryapric/loggit/issues

On CRAN:

exception-handlerlogging

7.32 score 37 stars 5 packages 38 scripts 599 downloads 10 exports 0 dependencies

Last updated 3 years agofrom:dd4afecbd5. Checks:OK: 7. Indexed: yes.

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

Exports:get_logfileget_timestamp_formatloggitmessageread_logsrotate_logsset_logfileset_timestamp_formatstopwarning

Dependencies:

Data Validation with loggit

Rendered fromdata-validation-with-loggit.Rmdusingknitr::rmarkdownon Nov 04 2024.

Last update: 2020-05-04
Started: 2020-05-04

Getting Started

Rendered fromgetting-started.Rmdusingknitr::rmarkdownon Nov 04 2024.

Last update: 2020-05-04
Started: 2020-05-04

Readme and manuals

Help Manual

Help pageTopics
Get Log Fileget_logfile
Get Timestamp Formatget_timestamp_format
loggit's Exception Handlershandlers message stop warning
Log entries to fileloggit
Return log file as an R data frameread_logs
Read ndJSON-formatted log fileread_ndjson
Rotate log filerotate_logs
Default sanitization for ndJSON.default_ndjson_sanitizer default_ndjson_unsanitizer sanitizers
Set Log Fileset_logfile
Set Timestamp Formatset_timestamp_format
Write ndJSON-formatted log filewrite_ndjson