Ó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/2

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

Og.log_r/1 , Og.log_r/2

%{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