You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by "Gary Gregory (JIRA)" <ji...@apache.org> on 2015/03/19 07:55:38 UTC
[jira] [Commented] (LOG4J2-978) log4j2 2.2 made breaking changes to
public classes
[ https://issues.apache.org/jira/browse/LOG4J2-978?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14368614#comment-14368614 ]
Gary Gregory commented on LOG4J2-978:
-------------------------------------
The {{log4j-api}} module is the only module currently considered locked down for 2.x backward binary compatibility.
The {{log4j-core}} is evolving but is pretty stable.
I see you are extending one of the core classes: {{SocketAppender}}. You could of course clone it instead of subclassing it which would avoid these kinds of issues.
Another avenue would be to propose a patch to enhance log4j if that change is general enough for log4j as opposed to domain specific to your application.
> log4j2 2.2 made breaking changes to public classes
> --------------------------------------------------
>
> Key: LOG4J2-978
> URL: https://issues.apache.org/jira/browse/LOG4J2-978
> Project: Log4j 2
> Issue Type: Bug
> Affects Versions: 2.2
> Reporter: Daniel Norberg
>
> The log4j2 2.2 release contained breaking changes to public classes, breaking direct uses and extenders of log4j2 interfaces.
> E.g. https://github.com/apache/logging-log4j2/commit/3cdbbeddf19137d20fa6527d6620e88afcecb7f9
> Here is an example of the impact of this breaking change: https://github.com/spotify/logging-java/commit/3d2ca1c31a8ca3eabe1db378e2df48e0757e80e7
> Does log4j2 aim to follow semantic versioning? I am currently looking into the feasibility of taking log4j2 into use instead of logback, but this will not be possible if log4j2 will be having further breaking changes in minor releases.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org