You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Meifang Shen (JIRA)" <ji...@apache.org> on 2012/09/12 05:23:07 UTC

[jira] [Created] (CAMEL-5592) Logger Level is always at default level("ERROR") when handler is LoggingErrorHandler

Meifang Shen created CAMEL-5592:
-----------------------------------

             Summary: Logger Level is always at default level("ERROR") when handler is LoggingErrorHandler
                 Key: CAMEL-5592
                 URL: https://issues.apache.org/jira/browse/CAMEL-5592
             Project: Camel
          Issue Type: Bug
          Components: camel-core
    Affects Versions: 2.9.3
            Reporter: Meifang Shen
            Priority: Trivial


when logger level is set to other level (WARN, DEBUG or INFO) except for ERROR, but actually the log is always at ERROR level (it's the default level).

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Assigned] (CAMEL-5592) Logger Level is always at default level("ERROR") when error handler is LoggingErrorHandler

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-5592?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen reassigned CAMEL-5592:
----------------------------------

    Assignee: Claus Ibsen
    
> Logger Level is always at default level("ERROR") when error handler is LoggingErrorHandler
> ------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-5592
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5592
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.9.3
>            Reporter: Meifang Shen
>            Assignee: Claus Ibsen
>
> when logger level is set to other level (WARN, DEBUG or INFO) except for ERROR, but actually the log is always at ERROR level (it's the default level).

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Comment Edited] (CAMEL-5592) Logger Level is always at default level("ERROR") when error handler is LoggingErrorHandler

Posted by "Meifang Shen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAMEL-5592?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13453834#comment-13453834 ] 

Meifang Shen edited comment on CAMEL-5592 at 9/12/12 7:42 PM:
--------------------------------------------------------------

Please see the configuration of the logger error handler:
{noformat} 
routeBuilder = new org.apache.camel.builder.RouteBuilder() {
	public void configure() throws Exception {
		errorHandler(loggingErrorHandler().logName(
				"TestLoggingErrorHandler").level(
				org.apache.camel.LoggingLevel.ERROR));
		from(uriMap.get("Sender_cMessagingEndpoint_1"))
				.routeId("Sender_cMessagingEndpoint_1")
				.process(new org.apache.camel.Processor() {
					public void process(org.apache.camel.Exchange exchange) throws Exception {
						throw new java.lang.Exception("This is specially generated java.lang.Exception exception");
					}

				}).id("cProcessor_1");
	}
};
getCamelContexts().get(0).addRoutes(routeBuilder);
{noformat} 

BTW, about the urimap, please see below code.

protected void initUriMap() {
	uriMap = new java.util.HashMap<String, String>();
	uriMap.put("Sender_cMessagingEndpoint_1", "timer:myTimer?repeatCount=1");
}

                
      was (Author: mfshen):
    Please see the configuration of the logger error handler:
{noformat} 
routeBuilder = new org.apache.camel.builder.RouteBuilder() {
	public void configure() throws Exception {
		errorHandler(loggingErrorHandler().logName(
				"TestLoggingErrorHandler").level(
				org.apache.camel.LoggingLevel.ERROR));
		from(uriMap.get("Sender_cMessagingEndpoint_1"))
				.routeId("Sender_cMessagingEndpoint_1")
				.process(new org.apache.camel.Processor() {
					public void process(org.apache.camel.Exchange exchange) throws Exception {
						throw new java.lang.Exception("This is specially generated java.lang.Exception exception");
					}

				}).id("cProcessor_1");
	}
};
getCamelContexts().get(0).addRoutes(routeBuilder);
{noformat} 
                  
> Logger Level is always at default level("ERROR") when error handler is LoggingErrorHandler
> ------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-5592
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5592
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.9.3
>            Reporter: Meifang Shen
>
> when logger level is set to other level (WARN, DEBUG or INFO) except for ERROR, but actually the log is always at ERROR level (it's the default level).

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (CAMEL-5592) Logger Level is always at default level("ERROR") when handler is LoggingErrorHandler

Posted by "Meifang Shen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-5592?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Meifang Shen updated CAMEL-5592:
--------------------------------

    Priority: Major  (was: Trivial)
    
> Logger Level is always at default level("ERROR") when handler is LoggingErrorHandler
> ------------------------------------------------------------------------------------
>
>                 Key: CAMEL-5592
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5592
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.9.3
>            Reporter: Meifang Shen
>
> when logger level is set to other level (WARN, DEBUG or INFO) except for ERROR, but actually the log is always at ERROR level (it's the default level).

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Resolved] (CAMEL-5592) Logger Level is always at default level("ERROR") when error handler is LoggingErrorHandler

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-5592?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen resolved CAMEL-5592.
--------------------------------

    Resolution: Fixed

Thanks for reporting.
                
> Logger Level is always at default level("ERROR") when error handler is LoggingErrorHandler
> ------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-5592
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5592
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.9.3, 2.10.1
>            Reporter: Meifang Shen
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 2.9.4, 2.11.0, 2.10.2
>
>
> when logger level is set to other level (WARN, DEBUG or INFO) except for ERROR, but actually the log is always at ERROR level (it's the default level).

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (CAMEL-5592) Logger Level is always at default level("ERROR") when error handler is LoggingErrorHandler

Posted by "Meifang Shen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-5592?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Meifang Shen updated CAMEL-5592:
--------------------------------

    Summary: Logger Level is always at default level("ERROR") when error handler is LoggingErrorHandler  (was: Logger Level is always at default level("ERROR") when handler is LoggingErrorHandler)
    
> Logger Level is always at default level("ERROR") when error handler is LoggingErrorHandler
> ------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-5592
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5592
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.9.3
>            Reporter: Meifang Shen
>
> when logger level is set to other level (WARN, DEBUG or INFO) except for ERROR, but actually the log is always at ERROR level (it's the default level).

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CAMEL-5592) Logger Level is always at default level("ERROR") when error handler is LoggingErrorHandler

Posted by "Meifang Shen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAMEL-5592?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13453834#comment-13453834 ] 

Meifang Shen commented on CAMEL-5592:
-------------------------------------

Please see the configuration of the logger error handler:
{noformat} 
routeBuilder = new org.apache.camel.builder.RouteBuilder() {
	public void configure() throws Exception {
		errorHandler(loggingErrorHandler().logName(
				"TestLoggingErrorHandler").level(
				org.apache.camel.LoggingLevel.ERROR));
		from(uriMap.get("Sender_cMessagingEndpoint_1"))
				.routeId("Sender_cMessagingEndpoint_1")
				.process(new org.apache.camel.Processor() {
					public void process(org.apache.camel.Exchange exchange) throws Exception {
						throw new java.lang.Exception("This is specially generated java.lang.Exception exception");
					}

				}).id("cProcessor_1");
	}
};
getCamelContexts().get(0).addRoutes(routeBuilder);
{noformat} 
                
> Logger Level is always at default level("ERROR") when error handler is LoggingErrorHandler
> ------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-5592
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5592
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.9.3
>            Reporter: Meifang Shen
>
> when logger level is set to other level (WARN, DEBUG or INFO) except for ERROR, but actually the log is always at ERROR level (it's the default level).

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (CAMEL-5592) Logger Level is always at default level("ERROR") when error handler is LoggingErrorHandler

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-5592?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen updated CAMEL-5592:
-------------------------------

             Priority: Minor  (was: Major)
    Affects Version/s: 2.10.1
        Fix Version/s: 2.10.2
                       2.11.0
                       2.9.4
    
> Logger Level is always at default level("ERROR") when error handler is LoggingErrorHandler
> ------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-5592
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5592
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.9.3, 2.10.1
>            Reporter: Meifang Shen
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 2.9.4, 2.11.0, 2.10.2
>
>
> when logger level is set to other level (WARN, DEBUG or INFO) except for ERROR, but actually the log is always at ERROR level (it's the default level).

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CAMEL-5592) Logger Level is always at default level("ERROR") when error handler is LoggingErrorHandler

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAMEL-5592?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13453730#comment-13453730 ] 

Claus Ibsen commented on CAMEL-5592:
------------------------------------

Can you post your configuration of the logger error handler. And an example of what is being logged.
                
> Logger Level is always at default level("ERROR") when error handler is LoggingErrorHandler
> ------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-5592
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5592
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.9.3
>            Reporter: Meifang Shen
>
> when logger level is set to other level (WARN, DEBUG or INFO) except for ERROR, but actually the log is always at ERROR level (it's the default level).

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira