|
Axis2Logger
Configuring the Logger for Apache Axis2
IntroductionThe Logger is an Axis2 client side handler, that can be configured to capture each request and response into files, organized by the date and other properties. It can also be managed via JMX if required - to have the ability to dynamically turn logging on or off. All log files will reside under the rootPath organized by subdirectories, that group by date. Optionally an identifier maybe used to group files within the date. Each request and response is then captured using the SOAP operation name, and time followed by a unique sequence number. i.e. Log requests to rootPath/date/identifier/operation HH MM SS seqreq.xml e.g. ConfigurationFirst deploy the .mar file into your repository/modules directory. To engage the Logging handler, edit your axis2.xml (i.e. used by the client) as follows: ...
<module ref="logger"/>
<moduleConfig name="logger">
<parameter name="rootPath">/tmp/x/y</parameter>
<parameter name="identifier">cfg1</parameter>
<parameter name="enabled">true</parameter>
<parameter name="enableJMX">true</parameter>
</moduleConfig>
...rootPath - defines the root path where all log files will reside dateFormat - specify a valid Java dateformat that will yield a valid path (default is yyyy_MM_dd) identifier - an optional grouping identifier string that will group files within the date. When multiple handler instances are used within the same JVM, this is also used to uniquely identify the different JMX beans enableJMX - allow a JMX console to connect and manage the logger enable - if disabled, but JMX is enabled, will allow the Logger to be enabled at runtime via JMX Donations
to help further development of the utilities. Donate |
Sign in to add a comment