You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by "Stefan Seifert (JIRA)" <ji...@apache.org> on 2014/01/19 00:23:20 UTC

[jira] [Commented] (LOG4J2-171) Implement a reverse-connect socket appender (SocketHubAppender)

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

Stefan Seifert commented on LOG4J2-171:
---------------------------------------

i've a working prototype for SocketHubAppender in log4j2:
https://github.com/stefanseifert/log4j2-sockethubappender

the implementation is currently more a 1:1 port with some glue code around from the implementation for log4j 1.2.
a big drawback is that it depends on the binary compatibility to the LoggingEvent class from log4j 1.2, which is currently not given in the log4j 1.2 bridge from log4j2. my recommendation would be to enhance the LoggingEvent class in the log4j 1.2 bridge from log4j to make it binary compatible concerning the fields and dependencies so it is usable by tools like OTROS log viewer. perhaps a separate ticket should be created for this.

see readme in the github project for details.

> Implement a reverse-connect socket appender (SocketHubAppender)
> ---------------------------------------------------------------
>
>                 Key: LOG4J2-171
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-171
>             Project: Log4j 2
>          Issue Type: New Feature
>            Reporter: Scott Deboy
>
> A reverse-connect TCP-based appender is useful for networking purposes (appender side doesn't need to know who is connecting to it, and can support multiple connections), and events can be cached, so in the case of an error, the most recent X events can be sent to anyone connecting to the appender.
> This was implemented in log4j1.x, would be good to have in log4j2



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org