I would like to configure logging in my application with log4j.properties and instruct (somehow) all third-party packages/modules to log through this configuration. Now they log differently and it’s a mess: OpenEJB, Hibernate, Apache HttpClient, Jersey, etc. How can I do this? I want to work with log4j only.
I would like to configure logging in my application with log4j.properties and instruct (somehow)
Share
Use a framework which can redirect all kinds of logging frameworks to
log4j: slf4j.See “Bridging legacy APIs” for an overview.
[Edit] Maven
pom.xmlfor slf4j: