Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
This issue is reproducible with log4j-2.17.1 & log4j-2-17-2
JDK 1.8
-Dlog4j1.compatibility=true
log4j.properties file :-
log4j.rootLogger=DEBUG,SYSLOG
log4j.appender.SYSLOG=org.apache.log4j.net.SyslogAppender
log4j.appender.SYSLOG.Threshold=DEBUG
log4j.appender.SYSLOG.SyslogHost=localhost:514
log4j.appender.SYSLOG.protocol=UDP
log4j.appender.SYSLOG.Facility=LOCAL1
log4j.appender.SYSLOG.layout=org.apache.log4j.PatternLayout
log4j.appender.SYSLOG.layout.ConversionPattern=${hostName} MyMain[%pid] :%t: %c %-4p - %m%nThis issue is reproducible with log4j-2.17.1 & log4j-2-17-2 JDK 1.8 -Dlog4j1.compatibility=true log4j.properties file :- log4j.rootLogger=DEBUG,SYSLOG log4j.appender.SYSLOG=org.apache.log4j.net.SyslogAppender log4j.appender.SYSLOG.Threshold=DEBUG log4j.appender.SYSLOG.SyslogHost=localhost:514 log4j.appender.SYSLOG.protocol=UDP log4j.appender.SYSLOG.Facility=LOCAL1 log4j.appender.SYSLOG.layout=org.apache.log4j.PatternLayout log4j.appender.SYSLOG.layout.ConversionPattern=${hostName} MyMain [%pid] :%t: %c %-4p - %m%n
Description
FACILITY and PRIORITY is not included when log4j bridge API sends SysLog message. Please find the attached pcap files.
Attachments
Attachments
Issue Links
- is duplicated by
-
LOG4J2-3436 Log4j 2 syslogAppender prints localhost.localdomain instead of actual hostname
- Closed
- is required by
-
LOG4J2-3419 Unable to create custom logging level using log4j 2 Bridge API
- Closed
- links to