Description Usage Arguments Details See Also Examples
In log4j etymology, Appenders are destinations where messages are written. Depending on the nature of the destination, the format of the messages may be controlled using a Layout.
The most basic appenders log messages to the console or to a file; these are described below.
For implementing your own appenders, see Details.
1 2 3 |
layout |
A layout function taking a |
file |
The file to write messages to. |
append |
When |
Appenders are implemented as functions with the interface
function(level, ...)
. These functions are expected to write their
arguments to a destination and return invisible(NULL)
.
tcp_appender
, http_appender
,
syslog_appender
1 2 3 4 | # The behaviour of an appender can be seen by using them directly; the
# following snippet will write the message to the console.
appender <- console_appender()
appender("INFO", "Input has length ", 0, ".")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.