阅读背景:

如何在使用java logging API时禁用默认控制台处理程序?

来源:互联网 

Hi I am trying to implement the java logging in my application. I want to use two handlers. A file handler and my own console handler. Both of my handlers work fine. My logging is send to a file and to the console . My logging is also sent to the default console handler, which i do not want. If you run my code you will see extra two line sent to the console. I don't want to use the default console handler. Does anyone know how to disable the default console handler. I only want to use the two handlers I have created.Hi I am trying to implement the java logging in




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: