: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"]}}
-
Notifications
You must be signed in to change notification settings - Fork 0
ruslandoga/logger_json_formatter
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
JSON formatter for :logger
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published