how to change the log level in activiti-app

cancel
Showing results for 
Search instead for 
Did you mean: 
samlambert
Member II

how to change the log level in activiti-app

I tried to change the log level of the activiti-app by changing the log4j.properties file, but still it prints debug and all the logs of all packages..any advice?

log4j.rootLogger=FATAL, stdout

# Console Appender
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern= %d{hh:mm:ss,SSS} [%t] %-5p %c %x - %m%n

# Custom tweaks
log4j.logger.com.codahale.metrics=Fatal
log4j.logger.com.ryantenney=Fatal
log4j.logger.com.zaxxer=Fatal
log4j.logger.org.apache=Fatal
log4j.logger.org.hibernate=Fatal
log4j.logger.org.hibernate.engine.internal=Fatal
log4j.logger.org.hibernate.validator=Fatal
log4j.logger.org.springframework=Fatal
log4j.logger.org.springframework.web=Fatal
log4j.logger.org.springframework.security=Fatal

3 Replies
ryandawson
Alfresco Employee

Re: how to change the log level in activiti-app

samlambert
Member II

Re: how to change the log level in activiti-app

Yes i am referring to the Activiti/log4j.properties at 6.x · Activiti/Activiti · GitHub.

Yes i changed the file in WEB-INF/classes and restarted tomcat, and it does not work.

I created activiti-app.properties file in resource which is [WEB-INF/classes] and added 

logging.level.org.springframework.web=FATALlogging.level.org.hibernate=FATAL

still no change.

Am i missing something here? please advice

ryandawson
Alfresco Employee

Re: how to change the log level in activiti-app

Ah you shouldn't have to create an activiti-app.properties. It should already be in `activiti-app.propertiesin the WEB-INF/classes/META-INF/activiti-app`.