Skip to content

@cbd /Lager.ex
Created

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
wrapper for basho's lager in Elixir
defmodule Lager do
# debug | info | notice | warning | error | critical | alert | emergency
def debug msg do
Lager.log(:debug,msg)
end
def info msg do
Lager.log(:info,msg)
end
def notice msg do
Lager.log(:notice,msg)
end
def warning msg do
Lager.log(:warning,msg)
end
def error msg do
Lager.log(:error,msg)
end
def critical msg do
Lager.log(:critical,msg)
end
def alert msg do
Lager.log(:alert,msg)
end
def emergency msg do
Lager.log(:emergency,msg)
end
def log(level,msg) do
:lager.log(level,Process.self(),msg)
end
end
@yrashk

This is just wrong :) this should have been implemented as a macro :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.