https://issues.apache.org/bugzilla/show_bug.cgi?id=45886
Juan Amiguet <[EMAIL PROTECTED]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |INVALID
--- Comment #3 from Juan Amiguet <[EMAIL PROTECTED]> 2008-09-25 03:22:01 PST
---
Enhancement not needed, same result can be obtained by configuration.
The solution proposed to append the identity to the pattern and then switch off
the facility logging works.
A sample configuration then is.
# Syslog is set to be a SyslogAppender.
log4j.appender.Syslog=org.apache.log4j.net.SyslogAppender
# Syslog uses PatternLayout.
log4j.appender.Syslog.layout=org.apache.log4j.PatternLayout
log4j.appender.Syslog.layout.ConversionPattern=<Identity>: %-5p %c{2}
[%t,%M:%L] %m%n
# Set Syslog properties.
log4j.appender.Syslog.SyslogHost=localhost
log4j.appender.Syslog.Facility=LOCAL3
#Facility printing must be set to off to avoid the Identity from ending up in
the message body.
log4j.appender.Syslog.FacilityPrinting=false
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]