Enterprise Integration Zone is brought to you in partnership with:

I am a graduate of University of Westminster UK (IIT) B Sc Software Engineering ( First Class Honours). I am a Sun Certified Java Programmer for Java 2 platform, 1.5 versions (SCJP 1.5). – 93% and a Sun Certified Web Component Developer 97%. I work as a Software Engineer at WSO2. Achala is a DZone MVB and is not an employee of DZone and has posted 20 posts at DZone. You can read more from them at their website. View Full User Profile

Log Mediator + WSO2 ESB

02.02.2013
| 2106 views |
  • submit to reddit
This is used to log onto the server log file.
 <log level="full" /> 
If you want to log a message. Use the following.

  <log level="custom">
            <property name="test" value="testt ....." />
  </log>
If you want to log a specific property ....
<log level="custom">
        <property name="Request Payload" expression="get-property('REQUEST_PAYLOAD')" />
 </log>
The above will log the request payload.
Logging to other log files is explained here

 

Published at DZone with permission of Achala Chathuranga Aponso, author and DZone MVB. (source)

(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)