TMSCH / ink

A Logger backend that logs JSON

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ink

Build Status Inline docs

Ink is a backend for the Elixir Logger with two main purposes:

  • to log JSON documents instead of normal log lines
  • to filter secret strings out of the log lines

Installation

Just add :ink to your dependencies and run mix deps.get.

def deps do
  [{:ink, "~> 0.7"}]
end

Usage

The only thing you have to do is drop some lines into your config.

# this will add Ink as the only backend for Logger
config :logger,
  backends: [Ink]

For more information on how to use Ink, take a look at the docs.

About

A Logger backend that logs JSON


Languages

Language:Elixir 100.0%