We are reviewing our JEE web application for some planned refactoring and one of the suggestions is to replace log4j with logback or slf4jThe team is not clear on whether we should do this - because currently we want to follow if it ain't broke, don't fix in this area.Edit: I'm not asking for a comparison of the logging frameworks, but whether it is a valuable refactoring element to change the framework when we're quite happy with log4j
Do I need to upgrade log4j to slf4j
refactoring
One important question you should take into account: Do you build a library that is used by someone else or do you build the end product? In the first case, SLF4j is very important, because someone will integrate your library in his software that already has logging in place and it would be nice if your classes just use that.In the second case, I would say you can just leave it as it is. Maybe think about using slf4j on the next project.