| |

Ruddi logging

Introduction

Logging is particularly useful when developing new applications. Ruddi can log just any XML message exchanged between a Ruddi application and an UDDI registry. Ruddi comes with a SystemOut logger allowing logging to the standard output, as well as with two file-based loggers respectively based on Apache Log4J and on XML.

Enabling logging

By default, and for performance reasons, logging is disabled. With Ruddi, logging is activated on a per UDDIProfile basis. This means that it is possible to write applications that only log the XML conversation with a specific UDDI registry, and this even if the application requires interaction with multiple UDDI registries.

Logging is enabled by setting to "true" the "inspireit.logging.logEnabled" UDDIProfile property. An easy way to enable logging on all UDDIProfile execution contexts consists in defining the "inspireit.logging.logEnabled" property as a java.lang.System property. System properties are indeed inherited by an UDDIProfile .

Working with the SystemOut logger

The SystemOut logger allows logging the XML messages exchanged between the Ruddi application and the UDDI registry to the standard output. It is the default logger and is operating as soon as logging is enabled.

Working with the Log4J logger

The Log4J logger allows logging the XML messages exchanged between the Ruddi application and the UDDI registry in a file. The Log4J logger can be enabled by setting the "inspireit.uddi.logging.provider" UDDIProfile property to the "inspireit.logging.Log4JLogger" value. The log file is called "inspireit-uddi.log" and is located in the working directory of the Ruddi application.

Working with the XML logger

The XML logger allows logging the XML messages exchanged between the Ruddi application and the UDDI registry in an XML file. The XML logger can be enabled by setting the "inspireit.uddi.logging.provider" UDDIProfile property to the "inspireit.logging.XMLLogger" value. The log file is called "inspireit-uddi.xml" and is located in the working directory of the Ruddi application.

 

| |

(c) INSPIRE IT, 2003 | Send us your feedback: developers@ruddi.biz