Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/soundtrackyourbrand/exlogger

JSON log formatter for the elixir Logger
https://github.com/soundtrackyourbrand/exlogger

Last synced: about 2 months ago
JSON representation

JSON log formatter for the elixir Logger

Awesome Lists containing this project

README

        

# ExLogger

Used to standardize log format for elixir projects. Outputs logs in JSON format, e.g:
```
{
"ts":"2018-02-13T09:43:11.000386Z",
"msg":"Binding queue to: core.entity.update",
"level":"info",
"module":"Elixir.AMQP",
"function":"bind_channel/4"
}
```

To enable exlogger you have to add this to your config:
```
config :logger, :console,
format: {ExLogger, :format},
```

## Installation
The package can be installed by adding `exlogger` to your list of dependencies in `mix.exs`:

```elixir
def deps do
[
{:exlogger, "~> 0.1.0"}
]
end
```