You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Roman Minko (JIRA)" <ji...@apache.org> on 2013/11/13 21:35:20 UTC

[jira] [Created] (CAMEL-6961) Make Camel core bundle configurable to generate less or smaller log messages itself

Roman Minko created CAMEL-6961:
----------------------------------

             Summary: Make Camel core bundle configurable to generate less or smaller log messages itself
                 Key: CAMEL-6961
                 URL: https://issues.apache.org/jira/browse/CAMEL-6961
             Project: Camel
          Issue Type: Improvement
          Components: camel-blueprint, camel-core, osgi
    Affects Versions: 2.12.1
         Environment: Karaf osgi container, blueprint configuration
            Reporter: Roman Minko
            Priority: Minor


Currently the Camel core generates easily lots of warning/error messages within the local log file. This makes it almost impossible to search for errors caused by other bundles, because the Camel bundle fills up about 99% of the log file content. Because the runtime will only store up to 11 log files log events are hard to find and also lost rather quickly (because older log files get deleted).
Looking through Camel code we can find something like this:
{code}
if (endpoint.getConsumer() == null) {
            LOG.warn("No consumers available on endpoint: " + endpoint + " to process: " + exchange);
            throw new DirectConsumerNotAvailableException("No consumers available on endpoint: " + endpoint, exchange);
        } else { 
{code}
The 	entire exchange put to the log before exception throw. It make a huge log entries, which can not be turn off, unless we lost all the logs from Camel bundle. 
It will be very useful to have camel bundle logs configurable, to get more and less details by demand.  



--
This message was sent by Atlassian JIRA
(v6.1#6144)