Skip to content
This repository was archived by the owner on Dec 14, 2021. It is now read-only.

Commit 60dbbdf

Browse files
author
Stefan Seifert
committed
update README
1 parent 4e39195 commit 60dbbdf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,16 @@ This is a SocketHubAppender implementation for Log4j2.
88
It's heavily based on the SocketHubAppender implementation for Log4j 1.2 and more a hacky port/wrapper to get the code for 1.2 running in Log4j2 than a clean and good rewrite.
99
Because the SocketHubAppender is based on serializing a log event (the Log4j 1.2 LoggingEvent class) this class and the related classes from Log4j 1.2 are still required to be compatible with visualization tools that can connect to the SocketHubAppender like OTROS log viewer.
1010
But this is a problem because these classes have to use the original package names which are already in use by the Log4j 2 bridge for 1.2, and this bridge contains binary incompatible version of the LoggingEvent class.
11-
Thus this project contains a copy of all relevant classes from Log4j 1.2, combined with a merging of the Log4j2 beta9 bridge fpr Log4j 1.2.
11+
Thus this project contains a copy of all relevant classes from Log4j 1.2, combined with a merging of the Log4j2 beta9 bridge for Log4j 1.2.
1212

13-
A proper solution would be to make the LoggingEvent class in the Log4j2 bridge for Log4j 1.2 binary compatible for the old version from 1.2 (this should be possible by addint the missing fields and related classes. Additional this SocketHubAppender implementation may need some refactoring e.g. to take advantage of the new manager concepts for appenders in Log4j2 and some general cleanup.
13+
A proper solution would be to make the LoggingEvent class in the Log4j2 bridge for Log4j 1.2 binary compatible for the old version from 1.2 (this should be possible by adding the missing fields and related classes. Additional this SocketHubAppender implementation may need some refactoring e.g. to take advantage of the new manager concepts for appenders in Log4j2 and some general cleanup.
1414

1515
For more information about the SocketHubAppender from Log4j 1.2 see [SocketHubAppender for log4j](http://wiki.apache.org/logging-log4j/SocketHubAppender)
1616

1717
### How to use
1818

1919
* Build the jar using Maven 3 from the folder log4j-1.2-api-with-sockethubappender
20-
* Add tha jar to the classpath of your projekct together with the log4j2 dependencies
20+
* Add the jar to the classpath of your project together with the log4j2 dependencies
2121
* Be sure not to include the original log4j-1.2-api jar from log4j2 because it is replaced by this jar (see above for reasons)
2222

2323
Configuration example:

0 commit comments

Comments
 (0)