r/java • u/fschmidt • Aug 30 '19
slf4j breaks log4j
/r/GoodSoftware/comments/cxayym/slf4j_breaks_log4j/9
u/krjura Aug 30 '19
The complicated part here is not in the slf4j but in your need to complicate your logging logic with the use of RepositorySelector.
7
u/heliologue Aug 30 '19
log4j 1.2 has been EOL for 4 years now.
Are you using Java 1.4, too?
2
u/divorcedbp Sep 02 '19
Actually, from reading through some of his code, it appears that he does, at least superficially. All the usages of anything from java.util do not utilize parameterized type bounds, and everything appears to return java.lang.Object.
0
Aug 30 '19
[deleted]
6
u/heliologue Aug 31 '19
He's not a satirist; he's a troll. He refers to us as "modern scum" over in /r/GoodSoftware. He and this thread are a waste of time.
-9
2
u/divorcedbp Aug 31 '19
If you have a hard requirement on some corner case log4j behavior, then why aren’t you just directly using the log4j api?
Presumedly if you have libraries that use slf4j for their own logging, they can just use it with the slf4j-log4j binding at runtime.
In this case, I’d probably ask if there’s a better way to accomplish the specific behavior you need without using log4j - it’s long-dead and deprecated. There’s a good chance that somebody has implemented something similar in logback.