Skip to content

Pretty Print Formatter for Elixir Logger module -- Colorize Ecto's SQL ouput 🖌️

License

Notifications You must be signed in to change notification settings

acostami/pretty_print_formatter

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pretty_print_formatter

Build Status

Screenshot

Elixir library for coloring the output of the logger. Right now it colorizes Ecto SQL statements and Phoenix's request id metadata.

The idea is to use colors as a way to help developers to spot easier in the console what's happening quickly.

Documentation

Documentation can be found at https://hexdocs.pm/pretty_print_formatter.

Installation

If available in Hex, the package can be installed by adding pretty_print_formatter to your list of dependencies in mix.exs:

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

After installing the dependency you need to update the config/dev.exs configuration file and set the new formatter.

config :logger, :console, format: {PrettyPrintFormatter, :write}

License

pretty_print_formatter is licensed under the MIT license.

See LICENSE for the full license text.

About

Pretty Print Formatter for Elixir Logger module -- Colorize Ecto's SQL ouput 🖌️

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Elixir 94.6%
  • Erlang 5.4%