RE: Syslog for Log4J 2 & 1

Subhajit Das <[email protected]>
Newsgroups gmane.comp.jakarta.log4j.user
Message-ID <BM1PR01MB2580E1D42136A936B2D4EFE1FC629@BM1PR01MB2580.INDPRD01.PROD.OUTLOOK.COM>
Hi Ralph,

This is the logback manual: http://logback.qos.ch/manual/appenders.html. Here syslog uses suffix patten. Which is then read by syslog server and starting text (say “app: <pattern>”), to segregate application logs.
This is the Log4J manual: https://logging.apache.org/log4j/2.x/manual/appenders.html#SyslogAppender. This does not discuss any suffix. There is an option to replace whole pattern.

I want to adapt first thing into second.

Thanks.

From: Ralph Goers<mailto:[email protected]>
Sent: 25 March 2021 10:27 PM
To: Log4J Users List<mailto:[email protected]>
Subject: Re: Syslog for Log4J 2 & 1

I don’t understand what you mean by a “suffix pattern”. Can you please elaborate?

Ralph

> On Mar 25, 2021, at 8:37 AM, Subhajit Das <[email protected]> wrote:
>
>
> Hi,
>
> We are using syslog in our organization with logback.
>
> I want to use log4j instead. But, it seems that there is no suffix pattern or anything available.
>
> How can I configure the same?
>
> Thanks.



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.