Skip to content

A backend for lager to send log messages to popcorn

Notifications You must be signed in to change notification settings

mhald/lager_popcorn_backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Enables lager to publish live logging data to popcorn.

Configuration

In the app.config add a lager_popcorn_backend entry to the lager config.

Hostname is determined at runtime.

The app version number should be passed in so log messages on bootup are recorded correctly.

Example:

{lager, [
         {handlers, [
            {lager_console_backend, none},
            {lager_file_backend,
             [
              {"log/error.log", error, 104857600, "$D0", 5},
             ]},
             {lager_popcorn_backend, [
                 {level,            debug},
                 {popcorn_host,     "hostname"},
                 {popcorn_port,     9125},
                 {node_role,        "webserver"},
                 {node_version,     "0.0.1"}
             ]}
  ]}
 ]},

About

A backend for lager to send log messages to popcorn

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published