0

When I change the application log level to FINE, SQL Servers log also uses it, and, as consequence, I get a lot of unnecessary log messages. How can I turn off SQL Server log messages?

1 Answer 1

2

before starts the jdbc connection, change de value of the property:

Logger logger = Logger.getLogger("com.microsoft.sqlserver.jdbc");
logger.setLevel(Level.OFF);

I ended up using WARNING

Other status are: SEVERE, WARNING, INFO, CONFIG, FINE, FINER, FINEST, OFF and all

more information at: http://msdn.microsoft.com/en-us/library/ms378517(SQL.90).aspx

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.