Learn R Programming

lgrExtra (version 0.1.0)

Serializer: Serializers

Description

Serializers are used by AppenderDbi to store multiple values in a single text column in a Database table. Usually you just want to use the default SerializerJson. Please not that AppenderDbi as well as Serializers are still experimental.

Arguments

Value

a Serializer

R6::R6 object for AppenderDbi.

Methods

Public methods


Method clone()

The objects of this class are cloneable with this method.

Usage

Serializer$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.

Super class

lgrExtra::Serializer -> SerializerJson

Methods


Method new()

Usage

SerializerJson$new(
  cols = "*",
  cols_exclude = c("level", "timestamp", "logger", "caller", "msg"),
  col_filter = is.atomic,
  max_nchar = 2048L,
  auto_unbox = TRUE
)


Method serialize()

Usage

SerializerJson$serialize(event)


Method clone()

The objects of this class are cloneable with this method.

Usage

SerializerJson$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.

Examples

Run this code
# The defaul Serializer for 'custom fields' columns
SerializerJson$new()

Run the code above in your browser using DataLab