You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by timgstewart <ti...@gmail.com> on 2012/09/06 20:09:44 UTC

FATAL level on Log Component

Minor problem, but according to the Log component documentation at
http://camel.apache.org/log.html there is a level option:

level	INFO	String	 Logging level to use. Possible values: FATAL, ERROR,
WARN, INFO, DEBUG, TRACE, OFF

Using FATAL gives:

Caused by: java.lang.IllegalArgumentException: No enum const class
org.apache.camel.LoggingLevel.FATAL
        at java.lang.Enum.valueOf(Enum.java:196)[:1.6.0_33]
        at
org.apache.camel.LoggingLevel.valueOf(LoggingLevel.java:26)[164:org.apache.camel.camel-core:2.9.0.fuse-70-084]
        at
org.apache.camel.component.log.LogComponent.getLoggingLevel(LogComponent.java:70)[164:org.apache.camel.camel-core:2.9.0.fuse-70-084]
        at
org.apache.camel.component.log.LogComponent.createEndpoint(LogComponent.java:40)[164:org.apache.camel.camel-core:2.9.0.fuse-70-084]
        at
org.apache.camel.impl.DefaultComponent.createEndpoint(DefaultComponent.java:91)[164:org.apache.camel.camel-core:2.9.0.fuse-70-084]
        at
org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:446)[164:org.apache.camel.camel-core:2.9.0.fuse-70-084]
        ... 57 more

checking org.apache.camel.LoggingLevel confirmed there was no FATAL, so
either docs or code are wrong.

What is the process to submit a fix for this, do I just put a JIRA in?



--
View this message in context: http://camel.465427.n5.nabble.com/FATAL-level-on-Log-Component-tp5718731.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: FATAL level on Log Component

Posted by Willem jiang <wi...@gmail.com>.
I just checked the code, we don't support the FATAL level, it's a document issue.

I just updated the wiki page for it.
-- 
Willem Jiang

FuseSource
Web: http://www.fusesource.com (http://www.fusesource.com/)
Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) (English)
          http://jnn.javaeye.com (http://jnn.javaeye.com/) (Chinese)
Twitter: willemjiang 
Weibo: willemjiang



On Friday, September 7, 2012 at 2:09 AM, timgstewart wrote:

> Minor problem, but according to the Log component documentation at
> http://camel.apache.org/log.html there is a level option:
> 
> level INFO String Logging level to use. Possible values: FATAL, ERROR,
> WARN, INFO, DEBUG, TRACE, OFF
> 
> Using FATAL gives:
> 
> Caused by: java.lang.IllegalArgumentException: No enum const class
> org.apache.camel.LoggingLevel.FATAL
> at java.lang.Enum.valueOf(Enum.java:196)[:1.6.0_33]
> at
> org.apache.camel.LoggingLevel.valueOf(LoggingLevel.java:26)[164:org.apache.camel.camel-core:2.9.0.fuse-70-084]
> at
> org.apache.camel.component.log.LogComponent.getLoggingLevel(LogComponent.java:70)[164:org.apache.camel.camel-core:2.9.0.fuse-70-084]
> at
> org.apache.camel.component.log.LogComponent.createEndpoint(LogComponent.java:40)[164:org.apache.camel.camel-core:2.9.0.fuse-70-084]
> at
> org.apache.camel.impl.DefaultComponent.createEndpoint(DefaultComponent.java:91)[164:org.apache.camel.camel-core:2.9.0.fuse-70-084]
> at
> org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:446)[164:org.apache.camel.camel-core:2.9.0.fuse-70-084]
> ... 57 more
> 
> checking org.apache.camel.LoggingLevel confirmed there was no FATAL, so
> either docs or code are wrong.
> 
> What is the process to submit a fix for this, do I just put a JIRA in?
> 
> 
> 
> --
> View this message in context: http://camel.465427.n5.nabble.com/FATAL-level-on-Log-Component-tp5718731.html
> Sent from the Camel - Users mailing list archive at Nabble.com (http://Nabble.com).