| appender_slack | R Documentation |
Send log messages to a Slack channel
appender_slack(
channel = Sys.getenv("SLACK_CHANNEL"),
username = Sys.getenv("SLACK_USERNAME"),
icon_emoji = Sys.getenv("SLACK_ICON_EMOJI"),
api_token = Sys.getenv("SLACK_API_TOKEN"),
preformatted = TRUE
)
channel |
Slack channel name with a hashtag prefix for public channel and no prefix for private channels |
username |
Slack (bot) username |
icon_emoji |
optional override for the bot icon |
api_token |
Slack API token |
preformatted |
use code tags around the message? |
function taking lines argument
This functionality depends on the slackr package.
Other log_appenders:
appender_async(),
appender_console(),
appender_file(),
appender_kinesis(),
appender_pushbullet(),
appender_stdout(),
appender_syslog(),
appender_tee(),
appender_telegram()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.