Skip to content
This repository has been archived by the owner on Apr 3, 2024. It is now read-only.

lorenzwalthert/drogger

Repository files navigation

Travis build status

this is not acyively developed. Don't use it.

drogger

The goal of drogger is twofold:

Simple wrappers around futil loggers

These wrappers

  • use snake case (i.e. flog_info instead of flog.info).
  • Use ... for message creation, i.e. you can flog_info("Hi ", "I am Lorenz") instead of flog.info(paste("Hi", "I am Lorenz")) to create a single log line.

Managing logs

All logs are stored under ./logs

  • flog_start() initializes a logger that writes to a new file with a time stamp.
  • flog_stop() ends writing to the open connection, adding all content from the current run to a log that contains all logged lines.
  • open_log() opens a log, by default the last log, which is found via find_last_log()
  • Conveniently archive logs with archive_logs().
  • Parsing a log file with parse_log() into a tibble.

Installation

You can install the development version from GitHub with:

# install.packages("devtools")
devtools::install_github("lorenzwalthert/drogger")

About

A logging scheme extending futile.logger

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages