Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 123C8200C47 for ; Thu, 30 Mar 2017 16:51:24 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 10D75160B8B; Thu, 30 Mar 2017 14:51:24 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 584BB160B78 for ; Thu, 30 Mar 2017 16:51:23 +0200 (CEST) Received: (qmail 49994 invoked by uid 500); 30 Mar 2017 14:51:22 -0000 Mailing-List: contact dev-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list dev@camel.apache.org Received: (qmail 49980 invoked by uid 99); 30 Mar 2017 14:51:21 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 Mar 2017 14:51:21 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 6942EDFBED; Thu, 30 Mar 2017 14:51:21 +0000 (UTC) From: igarashitm To: dev@camel.apache.org Reply-To: dev@camel.apache.org Message-ID: Subject: [GitHub] camel pull request #1585: CAMEL-11054 Create SPI for Log EIP to enable other... Content-Type: text/plain Date: Thu, 30 Mar 2017 14:51:21 +0000 (UTC) archived-at: Thu, 30 Mar 2017 14:51:24 -0000 GitHub user igarashitm opened a pull request: https://github.com/apache/camel/pull/1585 CAMEL-11054 Create SPI for Log EIP to enable other components to inte… …rcept/enrich logged messages # PLEASE DO NOT MERGE - this is continued from https://github.com/apache/camel/pull/1559 Hi @davsclaus , @objectiser , Here is an outline sketch for the CAMEL-11054. Let's start from here: * adds `addCamelLoggerListener()`/`getCamelLoggerListeners()` on `CamelContext` * `CamelLogger` holds a list of `CamelLoggerListener` * for Log EIP, `LogDefinition` copies `CamelLoggerListener`s from `CamelContext` to `CamelLogger` * for Log Component, `LogEndpoint` copies `CamelLoggerListener`s from `CamelContext` to `CamelLogger` * `CamelLoggerListener#onLog()` to receive a log event and return an enriched log message Questions: * do we want to extract `enrich()` from `onLog()` so it could be done separately? * do we want separated handler like `onWarn()`, `onInfo()` and etc. rather than `onLog()`? * any other event we want to handle in `CamelLoggerListener`? * As both of Log EIP and Component use `CamelLogger`, it's easy to add it on both of them. Is it OK or do we want it only on Log EIP? Any comment would be appreciated! You can merge this pull request into a Git repository by running: $ git pull https://github.com/igarashitm/camel CAMEL-11054 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/camel/pull/1585.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #1585 ---- ---- --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastructure@apache.org or file a JIRA ticket with INFRA. ---