Usage as code
louis030195 opened this issue · 2 comments
louis030195 commented
Is there any example to setup this as code (i.e. tweak the loggers / appenders ...) in Java / Kotlin ? I intend to use it for several projects, it's more practical and maintainable than doing some XML tweaks.
Thanks !
osiegmar commented
The logback configuration is simply setter based. You could check out the tests at https://github.com/osiegmar/logback-gelf/tree/master/src/test/java/de/siegmar/logbackgelf to see programmatic use of the API.
louis030195 commented
Awesome thanks !