You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 14, 2021. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,16 +8,16 @@ This is a SocketHubAppender implementation for Log4j2.
8
8
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.
9
9
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.
10
10
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.
12
12
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.
14
14
15
15
For more information about the SocketHubAppender from Log4j 1.2 see [SocketHubAppender for log4j](http://wiki.apache.org/logging-log4j/SocketHubAppender)
16
16
17
17
### How to use
18
18
19
19
* 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
21
21
* 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)
0 commit comments