Overview

This is a Logtail backend for logtail which lets you send lager logs to your logtail account. Lager_loggly was copied and edited so i could achieve this, special thanks to them for that!

Configuration

Configure a Lager handler like the following:

{lager_logtail_backend, [Level, MaxRetries, RetryInterval, LogtailToken]}

An example might look something like this:

{lager_logtail_backend, [info, 5, 3, <OWN_TOKEN>]}

Refer to Lager’s documentation for further information on configuring handlers.

Docker Setup

Docker build container

docker build -t lager_logtail .

Docker start container shell

docker run -it --init lager_logtail sh