I have packaging structre like beow
com.service.main
com.service.validation
com.service.subscriber
com.data.a
com.data.b
com.data.c
I want to create 3 appenders one for all data.* one for all service.* (except subscriber) one for all service.subscriber
I cannot use root here
Just add separate logger for this package and set additivity flag.
Documentation.
More concrete logger will be triggered. Other loggers will ignore this package as you have more specific (and with turned off "additivity").
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With