Hi,

Specifically I'm trying to do something like:

<Syslog name="syslog" host="127.0.0.1" port="514" facility="local1"
protocol="UDP">
   <!-- Here the pattern layout is only supposed to be the text / message
part of syslog record i.e. not the date/time stamp etc. -->
  <PatternLayout pattern="%-40.40c %-25.25t %X %m" />
</Syslog>

Thanks,

Brett



On 20 August 2014 20:30, Gary Gregory <[email protected]> wrote:

> Hello,
>
> Can you give us a specific example of what you'd like to achieve?
>
> Thank you,
> Gary
>
>
> On Tue, Aug 19, 2014 at 7:25 AM, Brett Delle Grazie <
> [email protected]> wrote:
>
> > Hi,
> >
> > I'm trying to use the SyslogAppender and possibly the SyslogLayout but I
> > wanted to customise the message format so that some MDC parameters could
> be
> > added to the content of the message (e.g. by applying a pattern layout to
> > the 'message' portion).
> >
> > Is there any way of achieving this? There used to be with Log4j 1.2.
> >
> > I appreciate that this can be done with format 5424 but we're using BSD
> > format right now.
> >
> > Thanks,
> >
> > --
> > Kind regards,
> >
> > Brett
> >
>
>
>
> --
> E-Mail: [email protected] | [email protected]
> Java Persistence with Hibernate, Second Edition
> <http://www.manning.com/bauer3/>
> JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
> Spring Batch in Action <http://www.manning.com/templier/>
> Blog: http://garygregory.wordpress.com
> Home: http://garygregory.com/
> Tweet! http://twitter.com/GaryGregory
>



-- 
Kind regards,

Brett Delle Grazie

Reply via email to