I have a hibernate that is configured only programmatically ( I don’t have a single XML file ).
I just finished writing my own implementation of org.slf4j.Logger.
How can I force hibernate to log to my implementation instead of the default one?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
AFAIK you can’t just change hibernates logging behaviour, but you can get slf4j to use your source with slf4j ‘Bridging legacy APIs’Ok if you re-implemented a slf4j logger, you are using the slf4j-api right ? if you are using Maven you could alter the dependencies for your project (see e.g. hibernate slf4j dependencies) to use your implementation jar instead