This is a wrapper library of logi.
logi
is a logger interface library for Erlang/OTP.
Add following lines to your mix.exs
:
def deps do
[{:logi_ex, "~> 0.5"}]
end
Next, add this to your application file:
def application do
[applications: [:logi_ex]]
end
# Enables macros
iex> require Logi
# Installs a sink
iex> sink = Logi.BuiltIn.Sink.IoDevice.new :foo
iex> Logi.Channel.install_sink sink, :info
# Outputs a log message
iex> Logi.info "hello ~p", [:world]