This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel.git
commit a409da0a7fd909433a57319bdc4c306b5c71fef1 Author: Claus Ibsen <claus.ib...@gmail.com> AuthorDate: Thu Jan 23 05:54:42 2020 +0100 CAMEL-14421: optimize core - ServiceSupport should not have instance logger. Use static logger instead. --- .../modules/ROOT/pages/camel-3x-upgrade-guide.adoc | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/docs/user-manual/modules/ROOT/pages/camel-3x-upgrade-guide.adoc b/docs/user-manual/modules/ROOT/pages/camel-3x-upgrade-guide.adoc index 2c8eb66..eff3c37 100644 --- a/docs/user-manual/modules/ROOT/pages/camel-3x-upgrade-guide.adoc +++ b/docs/user-manual/modules/ROOT/pages/camel-3x-upgrade-guide.adoc @@ -107,6 +107,27 @@ See the xref:message-history.adoc[Message History] documentation for how to enab === API changes +==== log changed to private static LOG + +The `ServiceSupport` class has changed its logging from instance to static, which means any inherited class that +uses `log` would need to change the code to compile. This may happen in custom Camel components. + +Before you may have: + +[source,java] +---- + log.debug("Sending message to foobar service: {}", messageId); +---- + +You then need to migrate the logging to also be static: + +[source,java] +---- + private static final Logger LOG = LoggerFactory.getLogger(FooBarProducer.class); + + LOG.debug("Sending message to foobar service: {}", messageId); +---- + ==== Exchange The `Exchange` API has been modified slightly as part of an optimization effort.