Re: Syslog

2017-04-05 Thread Mikael Ståldal
No, if anything I would propose to remove (or deprecate) SyslogAppender. But never mind. On Wed, Apr 5, 2017 at 4:06 PM, Ralph Goers wrote: > Let me rephrase. http://logging.apache.org/log4j/2.x/manual/ > appenders.html#SyslogAppender describes exactly what it does - write > either using the BSD

Re: Syslog

2017-04-05 Thread Ralph Goers
Let me rephrase. http://logging.apache.org/log4j/2.x/manual/appenders.html#SyslogAppender describes exactly what it does - write either using the BSD Syslog format or the RFC 5424 format. A user who wants to write to sys

Re: Syslog

2017-04-05 Thread Ralph Goers
Why? Ralph > On Apr 5, 2017, at 6:56 AM, Mikael Ståldal wrote: > > I see. But couldn't it be a bit confusing for users to have both? > > On Wed, Apr 5, 2017 at 3:54 PM, Ralph Goers > wrote: > I’m not sure I understand the question. Have you looked at the cod

Re: Syslog

2017-04-05 Thread Mikael Ståldal
I see. But couldn't it be a bit confusing for users to have both? On Wed, Apr 5, 2017 at 3:54 PM, Ralph Goers wrote: > I’m not sure I understand the question. Have you looked at the code? The > syslog appender is nothing more than the SocketAppender hardwired to use > one of those two layouts.

Re: Syslog

2017-04-05 Thread Ralph Goers
I’m not sure I understand the question. Have you looked at the code? The syslog appender is nothing more than the SocketAppender hardwired to use one of those two layouts. However, there is nothing preventing someone from using those Layouts with a different appender. Ralph > On Apr 5, 2017,

Re: syslog-ng disconnect causes thread to silently die?

2016-01-20 Thread Ralph Goers
Maybe, but it is probably possible to create an OutputStream that wraps the channel. Although slightly more cumbersome the advantage of not having a second appender is probably worth it. I think Netty also supports UDP too. We are also using an OutputStream for that even though UDP uses Datagra

Re: syslog-ng disconnect causes thread to silently die?

2016-01-20 Thread Mikael Ståldal
SocketAppender extends AbstractOutputStreamAppender, which requires an OutputStreamManager, which use an OutputStream. I don't think that an OutputStream is the proper abstraction for an socket appender using Netty (or something else else based on NIO). Probably better to make a new appender (such