Re: Mask password using log component

2018-06-29 Thread Darius Cooper
Balazs, Thanks for the response. Good point about Camel not being the right "level". Camel's DefaultMaskingFormatter uses a set of Regex's to look for the "secret key name" if it is formatted in three ways: key-value pair, json name:value, of XML tag.. That's something just as easily put into Logb

Re: Mask password using log component

2018-06-29 Thread Balazs Szeti
I'm not sure how to use those formatters, but we used logback's "replace" feature to make sure no credit card numbers are logged for example: %d{HH:mm:ss.SSS} [%16.16thread] %-5level %-30.30logger{30} \(%X{camel.breadcrumbId}\) - %replace(%m){'(secret:)[^\s]*','$1--'}%n%xEx Depending

Mask password using log component

2018-06-28 Thread Darius Cooper
I need to mask certain headers (e.g. Authorization header) at the Camel Context level, so that even if a programmer logs "showAll", the header is masked. Reading the Camel docs, I thought I would implement LogListener or ExchangeFormatter But, looking at this thread, maybe I should extend the Defa

Re: Mask password using log component

2017-02-23 Thread adondoni
Could you give me an example how can invoke a bean inside a log component? Thank Claus. -- View this message in context: http://camel.465427.n5.nabble.com/Mask-password-using-log-component-tp5794301p5794331.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Mask password using log component

2017-02-23 Thread souciance
3, 2017 at 10:28 AM, adondoni [via Camel] < ml-node+s465427n5794331...@n5.nabble.com> wrote: > Could you give me an example how can invoke a bean inside a log component? > > Thank Claus. > > -- > If you reply to this email, your message will

Re: Mask password using log component

2017-02-23 Thread Claus Ibsen
change your message. > > >> My blueprint xml is: >> >> ... >> >> >> ... >> >> >> >> -- >> View this message in context: >> http://camel.465427.n5.nabble.com/Mask-password-using-log-component-tp5794301p5794322.html >> Sent from the Camel - Users mailing li

Re: Mask password using log component

2017-02-23 Thread Claus Ibsen
the so it does NOT change your message. > My blueprint xml is: > > ... > > > ... > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Mask-password-using-log-component-tp5794301p5794322.html > Sent from the Camel - U

Re: Mask password using log component

2017-02-23 Thread adondoni
Hi, I've already thinks this solution. But if mask a password into a bean before log, I modify a message that continue in a route a lost password value. My blueprint xml is: ... ... -- View this message in context: http://camel.465427.n5.nabble.com/Mask-password-using-log-comp

Re: Mask password using log component

2017-02-23 Thread Claus Ibsen
gt; "username": "x", > "password": "" > }, > "jsonrpc": "2.0" > } > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Mask-password-using-log-component-tp5794301p57

Re: Mask password using log component

2017-02-23 Thread adondoni
t;jsonrpc": "2.0" } -- View this message in context: http://camel.465427.n5.nabble.com/Mask-password-using-log-component-tp5794301p5794308.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Mask password using log component

2017-02-23 Thread Claus Ibsen
problem is that request could be contains password value. > > Question is how can I mask password value when log body message. > > Thank in advance > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Mask-password-using-log-component-tp5794

Mask password using log component

2017-02-23 Thread adondoni
ssage in context: http://camel.465427.n5.nabble.com/Mask-password-using-log-component-tp5794301.html Sent from the Camel - Users mailing list archive at Nabble.com.

camel log component: logger from registry

2014-09-26 Thread jlrowe
Hiya There seems to be a little inconsistency between the log component and the log DSL Log component documentation says that it will always use a logger from the registry if a one is found Log DSL documentation says that it will only use a logger from the registry if the logger is not

Re: Log component query

2014-02-12 Thread Willem Jiang
Hi, The log component just log the message with the level that you set, it just as the common log. If your log endpoint level is lower then the category configuration, the log message won’t appear.  -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http

Log component query

2014-02-12 Thread gilboy
logging for this category outside this route will have a log level of *INFO*? Thanks Joe -- View this message in context: http://camel.465427.n5.nabble.com/Log-component-query-tp5747211.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: How do we have the "log:" component log to a file?

2013-05-07 Thread Jon Anstey
The log component utilizes whatever underlying logging mechanism you are using, like log4j or logback, etc. For log4j just google something like org.apache.log4j.RollingFileAppender and you'll find config options to add to log4j.properties. On Tue, May 7, 2013 at 5:35 PM, Chris Wolf wrote:

How do we have the "log:" component log to a file?

2013-05-07 Thread Chris Wolf
I notice all kinds of options for the log compenent, except for how to log to a file, as opposed to stdout: http://camel.apache.org/log.html I'm sure I'm some obvious piece of documentation on that, but I just can't find it... Any help? Thanks, Chris

Re: FATAL level on Log Component

2012-09-06 Thread Willem jiang
(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 i

FATAL level on Log Component

2012-09-06 Thread timgstewart
Minor problem, but according to the Log component documentation at http://camel.apache.org/log.html there is a level option: level INFOString Logging level to use. Possible values: FATAL, ERROR, WARN, INFO, DEBUG, TRACE, OFF Using FATAL gives: Caused by

Re: log component

2010-05-07 Thread Charles Moulliard
/charlesmoulliard On Thu, May 6, 2010 at 3:15 PM, Claus Ibsen wrote: > Hi > > Yes see the wiki documentation and the first example > http://camel.apache.org/logeip.html > > > On Thu, May 6, 2010 at 3:08 PM, Charles Moulliard > wrote: >> Hi, >> >> I would li

Re: log component

2010-05-06 Thread Claus Ibsen
Hi Yes see the wiki documentation and the first example http://camel.apache.org/logeip.html On Thu, May 6, 2010 at 3:08 PM, Charles Moulliard wrote: > Hi, > > I would like to know if it is possible using the log component to > printout a message to the console with the message i

log component

2010-05-06 Thread Charles Moulliard
Hi, I would like to know if it is possible using the log component to printout a message to the console with the message id ? from() .log(">>> Message saved in the DB : " + ) Kind regards, Charles Moulliard Senior Enterprise Architect (J2EE, .NET, SOA) Apa