I want to log everything of a package a into the logfile a.loq and all the rest (without any logs of a) into the standard.log file. So far I have got the a.log file but the standard log is still conaining everything of package a.
<logger name="my.package.a" level="INFO" additivity="false">
<appender-ref ref="FILE-A"/>
</logger>
<root level="INFO">
<appender-ref ref="FILE-STD"/>
</root>
From documentation:
logger has its additivity flag set to false such that its logging output will be sent to the appender named FILE but not to any appender attached higher in the hierarchy
So, it's all about ordering of appenders and loggers in your logback.xml.
Appenders should be declared higher than this logger.