Description Usage Arguments Value Functions Layout See Also
The functions define logging environment for writing log messages to the Redis data base using futile.logger's logging facilities
1 2 3 4 5 6 | layout.redis(ApplicationId, ApplicationInstanceId)
appender.redis(channel, logToConsole = FALSE)
redis_logger(ApplicationId, ApplicationInstanceId,
channel = redis_options("logChannel"), logToConsole = FALSE)
|
ApplicationId |
string, unique ID of the logging application |
ApplicationInstanceId |
string, unique ID of the single instance of the logging application |
channel |
Redis channel to publish logging messages |
logToConsole |
logical, if |
layout.redis returns a function with arguments level,
msg, and additional arguments ..., see Layout section and
flog.layout for details.
appender.redis returns a function with one argument
line that publishes the logging message to the Redis channel
channel and optionally writes it to the console
(stdout()).
layout.redis: defines logging message's layout, see Layout
section for details
appender.redis: defines a logging appender to publish logging
messages to a Redis data base channel channel
redis_logger: defines a new logger redis and sets
layout and appender to the return values of layout.redis() and
appender.redis(), respectively.
The logging message is a JSON string with two elements at the base level
Metadatacontains ApplicationId and
ApplicationInstanceId
LoggingDocumentcontains a list of message specific elements
Both meta data ApplicationId and ApplicationInstanceId
must be supplied. If missing the respective redis
options will be used.
The level argument in the returned function will control the
layout of the LoggingDocument list. Additional arguments
... either set list elements of LoggingDocument directly
(if present) or will be coerced to a "details" JSON-string.
flog.layout for managing layouts in
futile.logger package
flog.appender for managing logging
appenders in futile.logger package
flog.logger for managing loggers in
futile.logger package
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.