Skip to content

soundtrackyourbrand/exlogger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

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

About

JSON log formatter for the elixir Logger

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages