Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/soundtrackyourbrand/exlogger
- Owner: soundtrackyourbrand
- License: mit
- Created: 2018-02-13T08:51:51.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-06-05T08:25:00.000Z (over 5 years ago)
- Last Synced: 2024-11-20T04:27:41.447Z (2 months ago)
- Language: Elixir
- Homepage:
- Size: 13.7 KB
- Stars: 3
- Watchers: 10
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```