Skip to content
A backend for lager to send log messages to popcorn
Erlang Ruby
Find file
Pull request Compare This branch is 15 commits behind popcornlog:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
include
popcorn_proto @ f0ae453
src
.gitignore
.gitmodules
Makefile
README.md
Vagrantfile
rebar
rebar.config

README.md

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"}
             ]}
  ]}
 ]},
Something went wrong with that request. Please try again.