{"repo":"akasprzok/logfmt_ex","free":true,"listed":false,"github":"https://github.com/akasprzok/logfmt_ex","clone":"git clone https://github.com/akasprzok/logfmt_ex.git","description":"A logfmt log formatter for Elixir.","language":"Elixir","stars":27,"topics":["elixir","logging"],"license":"MIT","category":"analytics","readme_excerpt":"LogfmtEx A log formatter for the logfmt format popularized by Heroku. Installation The package can be installed by adding logfmt ex to your list of dependencies in mix.exs : In your app's logger configuration, specify the LogfmtEx module and its format function to be used to format your logs: You can customize the formatting in your config: Configuration :delimiter - defaults to = . :format - A list of atoms that defines the order in which key/value pairs will written to the log line. Defaults to [:timestamp, :level, :message, :metadata] . Valid parameters are :timestamp - the timestamp of the log message :level - the log level :message - the log message itself :metadata - metadata as key=value paris :node - the node name timestamp key - changes the key used for the timestamp field. Defaults to timestamp . timestamp format - How the timestamp is formatted. Defaults to :elixir . The options are :elixir - Uses the same formatting functions found in the standard elixir log formatter. Example: \"12:38:38.055 1973-03-12\" :epoch seconds - outputs an integer representing the number of seconds elapsed since January 1, 1970. Only useful for applications that emit logs sporadically. :iso8601 - Formats the timestamp according to ISO8601-2019. Example: 2000-02-29T23:00:07 level key - the key used for the log level. Defaults to level . message key - the key used for the message field. Defaults to message , but msg is a popular alternative. Encoding Structs can be encoded via the ValueEncod","default_branch":null,"files":null,"tree":[],"storefront":"/r/akasprzok","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/akasprzok/logfmt_ex/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."}