I would like to disable the part of log4j that registers all class / method calls that are called. For instance...
Apr 15, 2013 10:50:52 AM com.production.tasks.ImportNewOrders checkForOrders INFO: ------- Order
I want to be...
INFO: ------- Order
Currently, I have not configured the log4j properties file. I want INFO to go to stdout as it is, but just avoid these method call logs.
Update
Since then I created the log4j.properties file, but I can not find any settings to turn off registration of method calls.
Note; I am not trying to change the "format" of the log messages, but completely disable method call logging.
log4j.rootLogger=INFO, stdout log4j.appender.stdout=org.apache.log4j.ConsoleAppender log4j.appender.stdout.layout=org.apache.log4j.PatternLayout log4j.appender.stdout.layout.ConversionPattern=%d{ABSOLUTE} %5p %t %c:%L - %m%n
source share