Skip to content

ruslandoga/logger_json_formatter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

:logger.update_handler_config(:default, :formatter, {LoggerJSONFormatter, _config = %{}})

require Logger

Logger.info("hello")
# {"level":"info","time":1703227199210502,"msg":"hello","meta":{"pid":"#PID<0.356.0>","domain":["elixir"]}}
Logger.info(hello: "world")
# {"level":"info","time":1703227211400618,"msg":{"hello":"world"},"meta":{"pid":"#PID<0.356.0>","domain":["elixir"]}}

About

JSON formatter for :logger

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages