cancel
Showing results for 
Search instead for 
Did you mean: 

How can I change the logging level in unit tests?

sberardelli
Champ in-the-making
Champ in-the-making
I'm getting a bunch of messages that I don't want in my logs like the following:

Apr 14, 2011 11:22:26 AM org.activiti.engine.impl.db.DbSqlSession executeSchemaResource
INFO: performing create on engine with resource org/activiti/db/create/activiti.h2.create.engine.sql

How can I change the log level?
2 REPLIES 2

jbarrez
Star Contributor
Star Contributor
add a logging.properties which looks like this:

handlers = java.util.logging.ConsoleHandler
.level = INFO
java.util.logging.ConsoleHandler.level=INFO
java.util.logging.ConsoleHandler.formatter=org.activiti.engine.impl.util.LogUtil$LogFormatter

l_marinkov
Champ in-the-making
Champ in-the-making
You have to provide a logging.properties file containing the logging level. If you don't want to see the info change the logging level to WARNING. For example:


handlers = java.util.logging.ConsoleHandler
.level = WARNING
java.util.logging.ConsoleHandler.level=WARNING
java.util.logging.ConsoleHandler.formatter=org.activiti.engine.impl.util.LogUtil$LogFormatter