[
https://issues.apache.org/jira/browse/LOG4J2-1650?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15604485#comment-15604485
]
Ralph Goers commented on LOG4J2-1650:
-------------------------------------
I have insisted since day one that core should not have any required
dependencies for this very reason.
Personally, I think the main reason to split it up is to make it easier for
users. If they want a piece of functionality that requires a dependency it is
better if it is automatically included. I suspect we could do that in core by
using profiles, but that would probably cause more problems than it would solve.
Also, I truly believe things like the mom mom appenders, some of the DB
appenders and a number of the Layouts don't really belong in core. Although I
have never had a use for it, I kind of regret that the XMLLayout was modified
to use Jackson since that makes it a candidate to move out. That said, I really
don't know how much more could really be cut. I really don't know if the async
loggers could be moved out but I'm not sure I'd really want to. I don't know
how to eliminate the jansi dependency without moving the ConsoleAppender out,
which makes no sense, unless we have two versions of it. We know have an
optional dependency on commons-compress - it was never clear to me why
compressing to gzip or zip wasn't enough - but I don't see how that could be
eliminated.
> log4j2-core diet
> ----------------
>
> Key: LOG4J2-1650
> URL: https://issues.apache.org/jira/browse/LOG4J2-1650
> Project: Log4j 2
> Issue Type: Improvement
> Reporter: Romain Manni-Bucau
>
> Hello,
> log4j2 is ~1.3M. It is a lot to get started with logging and several parts
> are not mandatory to start and rarely needed all together like jackson, db,
> yaml (this one is not that big) etc...Also saw Generate class which is quite
> big but not sure it is needed at runtime and the annotation processor logic
> is never needed at runtime.
> Anyway, by comparison logback and log4j1 are ~500k so hopefully we could only
> pay the same price to get started with log4j2.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]