v0.0.1
Logger 0.0.1
First release of Logger, a flexible and powerful logging system for R applications.
Features
- Customisable Logger Class: Create loggers with configurable log levels, output destinations, and print functions.
- Multiple Log Levels: Support for INFO, WARNING, and ERROR log levels.
- File and Console Logging: Log to files, console, or both simultaneously.
- Helper Functions:
valueCoordinates
: Easily locate specific values in data frames.tableToString
: Convert data frames to string format for comprehensive logging.
- Parallel Processing Support:
messageParallel
function for reliable logging in parallel environments. - Error Logging with Context: Capture and log detailed error information including data previews.
Getting Started
Install Logger from GitHub:
remotes::install_github("dereckmezquita/R-Logger")
Basic usage:
box::use(Logger[Logger, LogLevel])
log <- Logger$new()
log$info("This is an informational message")
log$warn("This is a warning")
log$error("This is an error")