Why?
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.
What?
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.
Who?
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!
How?
Installation
Add logs to your list of deps in mix.exs:
def deps do
[
{:logs, "~> 1.0.0"}
]
endDocumentation 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
Development
Clone:
git clone git@github.com:dwyl/logs.gitRun tests:
mix dRoadmap?
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