We needed a simpler way
of doing logging
in our Elixir
/ Phoenix
Apps
that was fully compatible with existing Logger
calls
but more ergonomic and faster to use.
A logging abstraction library that allows us to write a single line in a file and let the lib do any heavy lifting / routing behind the scenes.
This is another "for us by us" library
that we don't expect
anyone else
to use.
It's
Open Source
so that anyone can use it.
If you're reading this
and want to contribute,
please dive in!
Add logs
to your list of deps
in mix.exs
:
def deps do
[
{:logs, "~> 1.0.0"}
]
end
Documentation at hexdocs.pm/logs
TODO:
read: https://hexdocs.pm/logger/Logger.html#content Then: https://medium.com/@svetob/sending-elixir-logs-to-logstash-as-json-1396605f9b7b
Clone:
git clone [email protected]:dwyl/logs.git
Run tests:
mix d
Eventually we would like to have a logging service that:
- Spawns a process to async send logs to a log storing/visualising service like Logstash
Looks like this is a good starting point: https://hex.pm/packages/logstash_logger_formatter