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:
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')) |
Bug tracker:https://github.com/ryapric/loggit/issues
Last updated 3 years agofrom:dd4afecbd5. Checks:OK: 7. Indexed: yes.
Target | Result | Date |
---|---|---|
Doc / Vignettes | OK | Nov 04 2024 |
R-4.5-win | OK | Nov 04 2024 |
R-4.5-linux | OK | Nov 04 2024 |
R-4.4-win | OK | Nov 04 2024 |
R-4.4-mac | OK | Nov 04 2024 |
R-4.3-win | OK | Nov 04 2024 |
R-4.3-mac | OK | Nov 04 2024 |
Exports:get_logfileget_timestamp_formatloggitmessageread_logsrotate_logsset_logfileset_timestamp_formatstopwarning
Dependencies:
Readme and manuals
Help Manual
Help page | Topics |
---|---|
Get Log File | get_logfile |
Get Timestamp Format | get_timestamp_format |
loggit's Exception Handlers | handlers message stop warning |
Log entries to file | loggit |
Return log file as an R data frame | read_logs |
Read ndJSON-formatted log file | read_ndjson |
Rotate log file | rotate_logs |
Default sanitization for ndJSON. | default_ndjson_sanitizer default_ndjson_unsanitizer sanitizers |
Set Log File | set_logfile |
Set Timestamp Format | set_timestamp_format |
Write ndJSON-formatted log file | write_ndjson |