Skip to content

Bunyan style JSON formatter for the file_backend of the Lager logging framework

Notifications You must be signed in to change notification settings

Vagabond/lager_bunyan_formatter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LagerBunyanFormatter

This is a Bunyan style JSON formatter for the Lager file_backend.

Configuration

This backend is configured as such::

{lager_file_backend, [{file, "log/bunyan.log"}, {level, info}, {formatter, lager_bunyan_formatter}, {formatter_config, [{name, "my_app_name"}]}]}

Usage

I would reccomend installing the Bunyan command line tool to pretty format the log outputs.

Todo

  • Allow overriding of hostname in configuration.

About

Bunyan style JSON formatter for the file_backend of the Lager logging framework

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages