简体   繁体   中英

How do I change the logging level for Gilead?

I'm getting a lot of records written to the log like this:

Jan 08, 2020 1:27:48 PM net.sf.gilead.core.PersistentBeanManager clonePojo INFO: Third party instance, not cloned

I'd like to stop them. I'm assuming that if I were to change the logging level that this is using to something like WARN, they'd stop, but I can't seem to find how to do that.

Don't think changing the log level to Warn will help as, this way you are trying to change the config level of your entire application.

Depending on the logging framework you use, it should help you configure this, to avoid printing logs of certain class/package.

See below answer to disable logs if you are using logback. There should be similar options for other logging frameworks.It would be helpful, If you could specify the exact logging framework you are using.

Disable the log from specific class/jar via logback.xml

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM