4 ms·
> If log4j2 is responsible for your company's success, you have a moral obligation to donate to the person who creates this library thanklessly. I doubt there
by blibble 5y ago
> If log4j2 is responsible for your company's success, you have a moral obligation to donate to the person who creates this library thanklessly.
I doubt there are many companies that this is true for, if any
yes, log4j is good, but there's a dozen other logging libraries for Java that do 99% of what people will use log4j for
and the same is true for Alpine
- mcguire 5y agoAnd rebuilding your entire company's ecosystem to switch logging libraries is practically free.
- blibble 5y agoas anyone who's maintained a large old java codebase will know: there's adapters for all the popular logging frameworks so they interoperate so yes, it can be
- ericb 5y agoWhere do these adapters come from?
- blibble 5y agotypically other logging projects eg. slf4j has adapters for logback/log4j/java.util.logging/commons-logging/... you can also implement it yourself, I've done it several times in both directions, both: - BigCoLogger -> OpenSourceLogger - OpenSourceLogger -> BigCoLogger they take at most a day to write, as the Logger and its factory are two well-specified small interfaces
- ericb 5y agoRight, so your solution to avoid relying on an open source library for your company's success is to use an open source adapter to rely on another open source library. It seems to the unenlightened like you're still depending on an open source library for your success, you've just changed which one? Shuffling the deck chairs around is one solution, I suppose. If all the deck chair makers get fed up, what then?
- blibble 5y agodid you read my comment or are you being deliberately obtuse? we have our own logging libraries, but other pieces of software we integrate with depend on the log4j interface so we have an adapter (that we wrote) that swaps out the log4j implementation for ours if all the open source logging disappeared tomorrow we'd be absolutely fine and everyone else would write a trivial adapter for Oracle's java.util.logging and they'd be absolutely fine too
- mcguire 5y agoBecause those maintainers' time is free?
- AndrewDucker 5y agoAnd your company can invest in log4j or it can invest the time and money in switching to another one. Which is cheaper?
- blibble 5y agoprobably switching as there's drop-in adapters for all of the popular logging frameworks