Discussion:
[jira] [Created] (LOG4J2-836) Binary Logging Appender
Abhishek Sharma (JIRA)
2014-09-18 12:57:33 UTC
Permalink
Abhishek Sharma created LOG4J2-836:
--------------------------------------

Summary: Binary Logging Appender
Key: LOG4J2-836
URL: https://issues.apache.org/jira/browse/LOG4J2-836
Project: Log4j 2
Issue Type: Wish
Components: Appenders
Affects Versions: 2.2
Reporter: Abhishek Sharma
Fix For: 2.2


Many of the projects requires to have logging in the binary format for certain scenarios. There should be a functionality for writing logs in binary format and if users need to consult binary log file then some read utility for it.

There are some implementation for it like: (https://code.google.com/p/mfz-binlog/). and it will be great if we can have it log4j.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
Remko Popma (JIRA)
2014-09-18 13:44:34 UTC
Permalink
[ https://issues.apache.org/jira/browse/LOG4J2-836?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14138934#comment-14138934 ]

Remko Popma commented on LOG4J2-836:
------------------------------------

Thank you for your interest in log4j2. Binary logging is a topic I'm also interested in and I expect to be adding features in this area in the near future.

I'm linking this ticket to a related ticket, LOG4J2-506.
Post by Abhishek Sharma (JIRA)
Binary Logging Appender
-----------------------
Key: LOG4J2-836
URL: https://issues.apache.org/jira/browse/LOG4J2-836
Project: Log4j 2
Issue Type: Wish
Components: Appenders
Affects Versions: 2.2
Reporter: Abhishek Sharma
Fix For: 2.2
Many of the projects requires to have logging in the binary format for certain scenarios. There should be a functionality for writing logs in binary format and if users need to consult binary log file then some read utility for it.
There are some implementation for it like: (https://code.google.com/p/mfz-binlog/). and it will be great if we can have it log4j.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
Ralph Goers (JIRA)
2014-09-18 14:30:34 UTC
Permalink
[ https://issues.apache.org/jira/browse/LOG4J2-836?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14138997#comment-14138997 ]

Ralph Goers commented on LOG4J2-836:
------------------------------------

One of the reasons Log4j 2 uses OutputStreams instead of Writers is to allow for binary streams on any Appender. But every stream needs some kind of output format. These are handled through Layouts. Log4j 2 already supports some formats that, while not strictly binary, are similar to it such as the SerializedLayout or the recently added GelfLayout which supports gzipped compressed JSON.

If you have a specific binary protocol you would like to have supported you should create a Jira issue for that and possibly provide the code for it.
Post by Abhishek Sharma (JIRA)
Binary Logging Appender
-----------------------
Key: LOG4J2-836
URL: https://issues.apache.org/jira/browse/LOG4J2-836
Project: Log4j 2
Issue Type: Wish
Components: Appenders
Affects Versions: 2.2
Reporter: Abhishek Sharma
Fix For: 2.2
Many of the projects requires to have logging in the binary format for certain scenarios. There should be a functionality for writing logs in binary format and if users need to consult binary log file then some read utility for it.
There are some implementation for it like: (https://code.google.com/p/mfz-binlog/). and it will be great if we can have it log4j.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
Abhishek Sharma (JIRA)
2014-09-18 14:40:33 UTC
Permalink
[ https://issues.apache.org/jira/browse/LOG4J2-836?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14139003#comment-14139003 ]

Abhishek Sharma commented on LOG4J2-836:
----------------------------------------

Thanks [~***@dslextreme.com] for the reply.

These days, in Apache Kafka project I am working on one of the issue which requires logging in Binary. Kafka right now is having dependency on log4j 1.2.17.
I have implemented custom appender extending AppenderSkelton class and writing data using DataOutputStream. I am not sure about protocol on which DataOutputStream implementation works. Will take a look on this.

One question I want to ask more, is there any utility in log4j 2 for reading this binary data back?
Post by Abhishek Sharma (JIRA)
Binary Logging Appender
-----------------------
Key: LOG4J2-836
URL: https://issues.apache.org/jira/browse/LOG4J2-836
Project: Log4j 2
Issue Type: Wish
Components: Appenders
Affects Versions: 2.2
Reporter: Abhishek Sharma
Fix For: 2.2
Many of the projects requires to have logging in the binary format for certain scenarios. There should be a functionality for writing logs in binary format and if users need to consult binary log file then some read utility for it.
There are some implementation for it like: (https://code.google.com/p/mfz-binlog/). and it will be great if we can have it log4j.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
Ralph Goers (JIRA)
2014-09-18 14:42:34 UTC
Permalink
[ https://issues.apache.org/jira/browse/LOG4J2-836?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14139004#comment-14139004 ]

Ralph Goers commented on LOG4J2-836:
------------------------------------

Log4j 2 has some "receivers" for sockets, JMS and I'm not sure what else. But again, the format of the data matters as it has to be converted back into a Log4j LogEvent.
Post by Abhishek Sharma (JIRA)
Binary Logging Appender
-----------------------
Key: LOG4J2-836
URL: https://issues.apache.org/jira/browse/LOG4J2-836
Project: Log4j 2
Issue Type: Wish
Components: Appenders
Affects Versions: 2.2
Reporter: Abhishek Sharma
Fix For: 2.2
Many of the projects requires to have logging in the binary format for certain scenarios. There should be a functionality for writing logs in binary format and if users need to consult binary log file then some read utility for it.
There are some implementation for it like: (https://code.google.com/p/mfz-binlog/). and it will be great if we can have it log4j.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Loading...