akvo / unep-gpml

UNEP - GPML Digital Platform
GNU Affero General Public License v3.0
6 stars 2 forks source link

Add possibility to configure logging level for production duct configuration #1144

Open lucassousaf opened 2 years ago

lucassousaf commented 2 years ago

The idea is to add the :level key to the logging config of the production profile and set it as an environment variable. Like:

duct.logger/timbre
{...
:level #duct/env ["LOG_LEVEL" Keyword]
...
}
lucassousaf commented 2 years ago

If we want a more fine grained configuration Timbre (our underlying logging implementation) accepts a lot more configuration: http://ptaoussanis.github.io/timbre/taoensso.timbre.html#var-*config* and http://ptaoussanis.github.io/timbre/taoensso.timbre.html#var-default-config