log_redis: Activate logging to Redis

Description Usage Arguments

Description

Activate logging to Redis

Usage

1
2
log_redis(con, key, ..., .warning = TRUE, .error = TRUE, .message = TRUE,
  .formatter = format_log_entry_json, subscriptions = NULL)

Arguments

con

A redis connection object, created by RedisAPI::hiredis.

key

Key to log to. If this exists it must be a list (this is enforced in this function but must remain true while logging is active).

...

list of quoted or unquoted events to log. In none are provided all log events will be captured.

.warning

logical: capture regular warnings (simpleWarning)?

.error

logical: capture regular errors (simpleError)?

.message

logical: capture regular messages (simpleMessage)?

.formatter

function: the formatting function used to convert a log event to its character representation for the log file. Note that the default formatter here is to JSON, not to text.

subscriptions

character vector: optional list of subscriptions to use (in place of specifying with ...).


richfitz/loggr.redis documentation built on May 27, 2019, 8:20 a.m.