lgr0.5.2 package

A Fully Featured Logging Framework

Appender

Appenders

AppenderBuffer

Log to a memory buffer

AppenderConsole

Log to the console

AppenderFile

Log to a file

AppenderFileRotating

Log to a rotating file

AppenderFileRotatingDate

Log to a date-stamped rotating file

AppenderFileRotatingTime

Log to a time-stamped rotating file

AppenderMemory

Abstract class for logging to memory buffers

AppenderTable

Abstract class for logging to tabular structures

as_LogEvent

Coerce objects to LogEvent

as.data.frame.LogEvent

Coerce LogEvents to Data Frames

basic_config

Basic Setup for the Logging System

CannotInitializeAbstractClassError

Logger Error Conditions

colorize_levels

Colorize Levels

default_exception_handler

Demote an exception to a warning

event_list

A List of LogEvents

EventFilter

Event Filters

Filterable

Abstract Class for Filterables

FilterForceLevel

Override the log level of all events processed by a Logger/Appender

FilterInject

Inject values into all events processed by a Logger/Appender

get_log_levels

Manage Log Levels

get_logger

Get/Create a Logger

is_filter

Check if an R Object is a Filter

label_levels

Label/Unlabel Log Levels

Layout

Abstract Class for Layouts

LayoutFormat

Format Log Events as Text

LayoutGlue

Format Log Events as Text via glue

LayoutJson

Format LogEvents as JSON

lgr-package

A Fully Featured Logging Framework for R

LogEvent

LogEvents - The atomic unit of logging

logger_config

Logger Configuration Objects

logger_index

Return a data.frame of all registered loggers

logger_tree

Logger Tree

Logger

Loggers

LoggerGlue

LoggerGlue

pad_right

Pad Character Vectors

print.Appender

Print an Appender object

print.LogEvent

Print or Format Logging Data

print.logger_tree

Print Logger Trees

print.Logger

Print a Logger Object

read_json_lines

Read a JSON logfile

simple_logging

Simple Logging

standardize_threshold

Standardize User-Input Log Levels to Their Integer Representation

string_repr

Short string representation for R objects

suspend_logging

Suspend All Logging

system_infos

Information About the System

toString.LogEvent

Convert a LogEvent to a character string

use_logger

Setup a Simple Logger for a Package

with_log_level

Inject Values into Logging Calls

A flexible, light-weight logging framework based on 'R6' classes. It supports hierarchical loggers, structured logging, output to plaintext, 'JSON', (rotating) files, and memory buffers. Additional appenders for 'Elasticsearch', 'Dynatrace', databases, email and push notifications, and more are available in the 'lgrExtra' package.

  • Maintainer: Stefan Fleck
  • License: MIT + file LICENSE
  • Last published: 2026-01-30