Creating a custom logger in a BPEL process
In this recipe, we will define a custom logger for a BPEL process. We will define a custom logger as an addition to the already existing loggers available for BPEL processes. The custom loggers are used in a scenario where there is a special requirement that ODL cannot fulfill, for example, if some logging information needs to be sent over the TCP socket, or if we want to provide special formatting types for logging.
Getting ready
Before we start with the recipe, we need to deploy a BPEL process. We will use the BPEL process from the Calling web services in sequence recipe defined in Chapter 2, Calling Services from BPEL. We defined two web services. The first one gives us the list of available hotels in the predefined date range. With a call to the next web service, we receive the price for the room in the hotel. Finally, we check for the car reservation.
How to do it…
In the following steps, we define the actions that need to be performed in order...