{"repo":"Nebo15/logger_json","free":true,"listed":false,"github":"https://github.com/Nebo15/logger_json","clone":"git clone https://github.com/Nebo15/logger_json.git","description":"JSON logger formatter with support for Google Cloud, DataDog and other for Elixir.","language":"Elixir","stars":295,"topics":["elixir","package","elixir-lang","log","logging","json","google-cloud-logging","log-collector","dockerized","datadog"],"license":"MIT","category":"analytics","readme_excerpt":"LoggerJSON A collection of formatters and utilities for JSON-based logging for various cloud tools and platforms. Supported formatters - LoggerJSON.Formatters.Basic - a basic JSON formatter that logs messages in a structured, but generic format, can be used with any JSON-based logging system. - LoggerJSON.Formatters.GoogleCloud - a formatter that logs messages in a structured format that can be consumed by Google Cloud Logger and Google Cloud Error Reporter. - LoggerJSON.Formatters.Datadog - a formatter that logs messages in a structured format that can be consumed by Datadog. - LoggerJSON.Formatters.Elastic - a formatter that logs messages in a structured format that conforms to the Elastic Common Schema (ECS), so it can be consumed by ElasticSearch, LogStash, FileBeat and Kibana. Installation Add logger json to your list of dependencies in mix.exs : and install it running mix deps.get . Then, enable the formatter in your runtime.exs : or inside your application code (eg. in your application.ex ): or inside your config.exs (notice that new/1 is not available here and tuple format must be used): You might also want to format the log messages when migrations are running: And you might want to make logging level configurable using an LOG LEVEL environment variable (in application.ex ): Additionally, you may also be try redirecting otp reports to Logger (see \"Configuration\" section). Configuration Configuration can be set using 2nd element of the tuple of the :formatter option i","default_branch":null,"files":null,"tree":[],"storefront":"/r/Nebo15","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Nebo15/logger_json/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}