surik / lager_journald_backend

A lager backend to log native to the systemd journal

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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 send 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.

About

A lager backend to log native to the systemd journal

License:MIT License


Languages

Language:Erlang 100.0%