Skip to content

satyamshekhar/lager_email_backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lager Email Backend

This is a backend for the Lager Erlang logging framework.

https://github.com/basho/lager

This backend will send all your logs to the configured email addresses. Specially useful for warning/errors logs. You can throttle the number of emails received per min. Setting the limit to 0, disables throttling.

Usage

Include this backend into your project using rebar:

{lager_email_backend, ".*", {git, "https://github.com/satyamshekhar/lager_email_backend.git", "master"}}

Configuration

You can pass the backend the following configuration (shown are the defaults):

{lager, [
  {handlers, [
    {lager_email_backend, [
        {level, warning}, 
        {from, "<[email protected]>"},
        {to, ["<[email protected]>", "<[email protected]>"]},
        {username, "[email protected]"},
        {password, "hidden_pass"},
        {smtp_server, "smtp.someserver.com"},
        {emails_per_min, 10}
    ]}
  ]}
]}

About

Email Backend for lager.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages