Perhaps some of these new features could be used to replace what you were doing before?
log4j-api supports the Message API which can be used to log structured log messages such as for use in syslog. See https://logging.apache.org/log4j/2.x/manual/messages.html for the API details. Similarly, we also have the EventLogger <https://logging.apache.org/log4j/2.x/manual/eventlogging.html> which can easily be used with a syslog appender. As for the appender, check <https://logging.apache.org/log4j/2.x/manual/appenders.html#SyslogAppender> which shows all the currently available options in the v2 appender. If there's a missing feature there that you reimplemented in your code, perhaps a feature request would be appropriate? On Thu, 20 Feb 2020 at 09:30, EDMONDO SENA <[email protected]> wrote: > > That class has been created to face to a bug in a syslog4j library related to > the handling of identity when more Appenders are used within the same VM. > We've created some methods like: > > - append(LoggingEvent...) > - initialize() for the protocol > - get() and set() SyslogHost.... > > > > On 2020/02/20 15:23:58, Matt Sicker <[email protected]> wrote: > > What did you customize about that old class? We likely already support the > > same features you added in the v2 class. Can you tell us a little more > > about your use case? > > > > On Thu, Feb 20, 2020 at 09:22 EDMONDO SENA <[email protected]> wrote: > > > > > > > > Well: > > > > > > We're using Log4j 2 and we've a class that extends > > > SysLog4jAppenderSkeleton where the import is: > > > > > > org.productivity.java.syslog4j.impl.log4j.Syslog4jAppenderSkeleton.. > > > Changing the jars the > > > previous class is inconsistent.... > > > > > > > > > On 2020/02/20 15:12:05, Ralph Goers <[email protected]> wrote: > > > > See > > > http://logging.apache.org/log4j/2.x/manual/appenders.html#SyslogAppender < > > > http://logging.apache.org/log4j/2.x/manual/appenders.html#SyslogAppender> > > > > > > > > Ralph > > > > > > > > > On Feb 20, 2020, at 8:05 AM, EDMONDO SENA <[email protected]> wrote: > > > > > > > > > > Sorry it means that now is it impossible to use syslog4j with log4j 2? > > > > > What do you mean out of the box? > > > > > > > > > > //Edmondo. > > > > > > > > > > > > > > > On 2020/02/20 15:01:25, Matt Sicker <[email protected]> wrote: > > > > >> I’d guess no, but Log4j2 comes with syslog appenders out of the box > > > now. > > > > >> > > > > >> On Thu, Feb 20, 2020 at 04:30 EDMONDO SENA <[email protected]> wrote: > > > > >> > > > > >>> Hi, > > > > >>> > > > > >>> Syslog4j is compatible with Log4j 2? > > > > >>> Kind regards. > > > > >>> > > > > >>> --------------------------------------------------------------------- > > > > >>> To unsubscribe, e-mail: [email protected] > > > > >>> For additional commands, e-mail: [email protected] > > > > >>> > > > > >>> -- > > > > >> Matt Sicker <[email protected]> > > > > >> > > > > > > > > > > --------------------------------------------------------------------- > > > > > To unsubscribe, e-mail: [email protected] > > > > > For additional commands, e-mail: [email protected] > > > > > > > > > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: [email protected] > > > For additional commands, e-mail: [email protected] > > > > > > -- > > Matt Sicker <[email protected]> > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > -- Matt Sicker <[email protected]> --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
