logback duplicate log issue

This is caused by the default action of logger appenders are cumulative. so you need to add

additivity="false"

into the logger.

Read this for details.

https://logback.qos.ch/manual/configuration.html#cumulative

Advertisements