Skip to content

travelping/lager_journald_backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Overview

This is a backend for Lager

It will send logs out of lager to systemd journald.

Configuration

Configure Lager like this:

{handlers, [ {lager_journald_backend, [{level, info}]} ]}

All logs with the level of the configuration or higher will be sent to journald. The default level is info, so in the case above you can simply write:

{handlers, [ {lager_journald_backend, []} ]}

Dependency

lager_journald_backend uses ejournald.

Building

You can build lager_journald_backend via rebar:

rebar get-deps
rebar compile

About

A lager backend to log native to the systemd journal

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages