arnomi / elixir-flex-logger

A flexible logger backend for Elixir that adds log levels per module
MIT License
17 stars 1 forks source link

How to use as a library author? #1

Closed cjbottaro closed 3 years ago

cjbottaro commented 5 years ago

Hello! I just discovered this package and it seems to do something I've been wanting in Elixir for a long time.

As a library author, do I need to do anything in my library for people to use this? Do I have to to set :application metadata when logging from within my library?

Or can I just call vanilla Logger.debug from my library and the end user can still disable debug logging for my lib?

Thanks for this and the help!

arnomi commented 3 years ago

You don’t need to do anything special within your library as FlexLogger works on top of Elixir‘s standard log system.