Óg Build StatusHex VersionHex docs

Óg is a small collection of logger helper functions.

Installation

Add óg to your list of dependencies in mix.exs:

def deps, do: [{:og, "~> 0.2"}]

Summary

Example Usages

Og.log/1

Og.log(String.to_atom("test"))

Og.log/3

Og.log(String.to_atom("test"), __ENV__, :warn)

Og.log/4

Og.log(:test, __ENV__, :info, inspect_opts: [syntax_colors: [atom: :blue]])
Og.log(String.to_atom("test"), :info, [pretty: :true, syntax_colors: [atom: :green]])

Og.log_r/3

%{first: "john", last: "doe"}
|> Map.to_list()
|> Enum.filter( &(&1 === {:first, "john"}))
|> Og.log_r()
|> List.last()
|> Tuple.to_list()
|> List.last()
|> Og.log_r(:warn)
|> String.upcase()

Acknowledgements

Licence

MIT