ex_slack_logger v0.1.1 ExSlackLogger

ExSlackLogger is a logger backend module for Slack.

Example

At frist, add ExSlackLogger as logger backend in your config.exs.

config :logger, backends: [:console, ExSlackLogger]

Next, configure logger backend.

config :logger, ExSlackLogger,
  level: :error,
  hook_url: {:system, "SLACK_WEBHOOK_URL"},
  channel: "#your_slack_channel_name",
  username: "slack_user_name"

After that, you can receive application log in your slack channel.

Link to this section Summary

Functions

Callback implementation for c::gen_event.handle_call/2.

Callback implementation for c::gen_event.handle_event/2.

Callback implementation for c::gen_event.handle_info/2.

Callback implementation for c::gen_event.init/1.

Link to this section Functions

Link to this function

handle_call(arg, state)

Callback implementation for c::gen_event.handle_call/2.

Link to this function

handle_event(arg1, state)

Callback implementation for c::gen_event.handle_event/2.

Link to this function

handle_info(arg, state)

Callback implementation for c::gen_event.handle_info/2.

Link to this function

init(_MODULE__)

Callback implementation for c::gen_event.init/1.