Hi Udara,

The default log level is Simple, which logs some headers (plus any
properties you give). So it has to be content aware. If you don't want
those headers to be logged, you should set "custom" explicitly.

Thanks,
Bhathiya

On Tue, Sep 6, 2016 at 4:01 PM, Udara Liyanage <[email protected]> wrote:

> Hi ESB team,
>
>
> Below is isContentAware() method for LogMediator. According to that any
> log which does not have log level custom becomes content aware.
>
>   public boolean isContentAware() {
>       if (logLevel == CUSTOM) {
>           for (MediatorProperty property : properties) {
>               if (property.getExpression() != null &&
> property.getExpression().isContentAware()) {
>                   return true;
>               }
>           }
>           return false;
>       }
>       return true;
>   }
>
> If so below log will also become content aware. IMO this is not a content
> aware log, is it?
>
>  <log>
>     <property name="In-JSONtestInSequence" value="In-JSONtestInSequence"/>
>  </log>
>
> --
>
> Udara Liyanage
> Software Engineer
> WSO2, Inc.: http://wso2.com
> lean. enterprise. middleware
>
> Blog: http://udaraliyanage.wordpress.com
>
> _______________________________________________
> Dev mailing list
> [email protected]
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Bhathiya Jayasekara*
*Senior Software Engineer,*
*WSO2 inc., http://wso2.com <http://wso2.com>*

*Phone: +94715478185*
*LinkedIn: http://www.linkedin.com/in/bhathiyaj
<http://www.linkedin.com/in/bhathiyaj>*
*Twitter: https://twitter.com/bhathiyax <https://twitter.com/bhathiyax>*
*Blog: http://movingaheadblog.blogspot.com
<http://movingaheadblog.blogspot.com/>*
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to