我想删除在代码运行时生成的日志。
例如,我在 voip/asterisk 中使用 asterisk-java,我总是收到以下消息
Jul 30, 2012 10:55:17 AM org.asteriskjava.manager.internal.ManagerConnectionImpl connect
INFO: Connecting to 192.168.0.27:5038
Jul 30, 2012 10:55:18 AM org.asteriskjava.manager.internal.ManagerConnectionImpl setProtocolIdentifier
INFO: Connected via Asterisk Call Manager/1.1
Jul 30, 2012 10:55:18 AM org.asteriskjava.manager.internal.ManagerConnectionImpl setProtocolIdentifier
WARNING: Unsupported protocol version 'Asterisk Call Manager/1.1'. Use at your own risk.
Jul 30, 2012 10:55:18 AM org.asteriskjava.manager.internal.ManagerConnectionImpl doLogin
INFO: Successfully logged in
Jul 30, 2012 10:55:22 AM org.asteriskjava.manager.internal.ManagerConnectionImpl doLogin
INFO: Determined Asterisk version: Asterisk 1.0
是否有任何配置设置或其他方式来删除日志并防止它在我的代码执行运行时生成。
谢谢