Skip to content

BBVA/json-logex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JSONLogex

JSONLogex is a custom backend for Elixir's Logger. It outputs log events in JSON format to the standard console.

It is based on the Logger's standard console backend, json_logger and ExSyslog. We are planning to add configuration options for custom json output and metadata.

https://hex.pm/packages/json_logex

Installation

  1. Add json_logex to your list of dependencies in mix.exs:
```elixir
def deps do
  [{:json_logex, "~> 0.1.0"}]
end
```
  1. Use json_logex as a backend for logger in your config files (there is no specific configuration for this version of the backend):
config :logger,
  backends: [JSONLogex],
  utc_log: true,
  level: :debug

About

Logger custom backend for console json output (elixir library)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages