I have loads of log(INFO,"")
log messages in my all service classes, I need to disable those only INFO
messages for now. For that, I edited my /app/src/log4j.properties
file. and set as :
log4j.rootLogger=warn, stdout
So, It should display now only Warning and higher level logs, but when I execute code after made changes, it still shows INFO
messages.
I think I need to set log level at package level, but How can I set this package level in particular wavemaker? Here is some basic configuration info for log4j
setup in Wavemaker
, But it is not showing how to disable or which class need to set at level warn
or something else to get rid of INFO messages. I haven't added log4j.proprties
file here, I will add if someone want to see it.
Look for other uncommented lines in log4j.properties file that display INFO. For example:
# logging for CloudFoundry upload
log4j.logger.com.wavemaker.tools.deployment.cloudfoundry=info
# logging for XHR Service
log4j.logger.com.wavemaker.runtime.service.WaveMakerService=info
Try commenting out these lines or change to warn. Haven't tried this but it makes sense..
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.