我试图在eclipse中执行一个程序,当我点击运行时,我在控制台输出中看到了这个:
[] is an unknown syslog facility. Defaulting to [USER].
/
"Failed"
有什么想法吗?
答案 0 :(得分:0)
看起来该错误来自org.apache.log4j.net.SyslogAppender
,并且您尝试设置错误的设施名称。去看看你的appender以及你如何设置它们。
414 public
415 void setFacility(String facilityName) {
416 if(facilityName == null)
417 return;
418
419 syslogFacility = getFacility(facilityName);
420 if (syslogFacility == -1) {
421 System.err.println("["+facilityName +
422 "] is an unknown syslog facility. Defaulting to [USER].");
423 syslogFacility = LOG_USER;
424 }
425
426 this.initSyslogFacilityStr();
427
428 // If there is already a sqw, make it use the new facility.
429 if(sqw != null) {
430 sqw.setSyslogFacility(this.syslogFacility);
431 }
432 }