In log4j
it\'s possible to define log levels by package
as follows:
It should work with fully qualified name as well. Logger.name doesnt have to be package/class only but it could be any name which you want to. When you call LoggerFactory.getLogger("MyLogger"), then you have to use
Check what is logged when you use logger for package and use logger name from log. What logger name is logged for this class?