[ 
https://issues.apache.org/jira/browse/LOG4J2-1904?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16005836#comment-16005836
 ] 

Ralph Goers edited comment on LOG4J2-1904 at 5/11/17 3:36 AM:
--------------------------------------------------------------

The default layout(s) for the syslog appender are the SyslogLayout and 
Rfc5424Layout. When you overrode the layout with a pattern layout you replaced 
those so whatever is written will match the pattern you specified. If you want 
a valid syslog message then you have to use one of those two layouts.


was (Author: [email protected]):
The default layout(s) for the syslog appender are the SyslogLayout and 
Rfc5424Layout. When you overrode the layout with a pattern layout you replaced 
those so whatever is written will match the pattern you specified.

> facility setted to syslogappendar don't work,but user facility is being used.
> -----------------------------------------------------------------------------
>
>                 Key: LOG4J2-1904
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-1904
>             Project: Log4j 2
>          Issue Type: Question
>          Components: Layouts
>    Affects Versions: 2.8.2
>            Reporter: clonline
>
> Hello
> The following is my settings.
> {code}
>  <Syslog name="SYSLOG" host="127.0.0.1" port="514" protocol="UDP" 
> facility="LOCAL6">
>    <PatternLayout pattern=" %d{DEFAULT} %5p - %m%n"/>
>  </Syslog>
>  {code}
> But the facility received by rsyslog is not LOCAL6 and is USER.
> The jars that I am using
>   * commons-logging-1.1.1.jar
>   * log4j-jcl-2.8.2.jar
>   * log4j-core-2.8.2.jar
>   * log4j-api-2.8.2.jar
> Thanks for any answers.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to