Skip to content
Matt Hicks edited this page Nov 4, 2020 · 6 revisions

Slack Logging

If you add the scribe-slack dependency to your project you can configure Scribe to log to Slack (https://slack.com/).

Again, this will only work on the JVM variant.

libraryDependencies += "com.outr" %% "scribe-slack" % "3.0.2"

The easiest way to configure this is to use the convenience method configure:

scribe.slack.Slack.configure(serviceHash, botName)

serviceHash is the API service hash provided by Slack.

botName is the name of the bot when it sends a message to Slack.

The method has several other parameters available but has defaults. For example, this will default to using the root logger, but you can override the default to use any logger.

Finally, if you want complete control over the logging and formatting you can directly use the SlackWriter.

Clone this wiki locally