Don't wrap the Elixir logger (or be careful if you do)

Elixir comes with a powerful and convenient logging facility exposed by the Logger module. It is used universally in Elixir projects, which makes the subject of logging far more approachable in Elixir than in most other languages, where the logging story is far less straightforward.

Basic usage of Logger may be enough for you, most of the time, but, sometimes, the need to customise some aspects of it will arise. I cover that in this blog post.

2 Likes

Corresponding tweet for this thread:

Share link for this tweet.

2 Likes