Using the Logging Facility
Introduction
Ariba Supplier OnRamp Adapter logging facility logs messages about the punchout process, regardless of whether you use Trading Networks.The log entries can also be configured to log messages related to MasterAgreementRequest and InvoiceDetailRequest processes.
Message Categories and Log Entry Types
Ariba Supplier OnRamp Adapter provides the following categories of log messages that you can enable or disable:
- PunchOutSetupRequest. Messages related to the PunchOutSetupRequest/PunchOutSetupResponse transaction.
- OrderRequest.Messages related to the OrderRequest/OrderResponse transaction.
- MasterAgreementRequests. Messages related to the MasterAgreementRequest/Response transaction.
- InvoiceDetailRequest. Messages related to the InvoiceDetailRequest/Response transaction.
- General Messages.Messages about other transactions apart from the transactions handled by the four messages specified above.
The types of log entries are informational (messages indicating status) and error (messages indicating processing errors).
For more information, see Enabling Logging.
Log Messages Created by Ariba Supplier OnRamp Adapter
In addition, Ariba Supplier OnRamp Adapter automatically creates log messages when it:
- Receives a valid cXML request (an informational message).
- Receives an invalid cXML message or MIME message (an error message).
- Encounters an error returned by your handler.
- Sends a cXML response (an informational or error message).
Additional Log Entries
If you want to log additional entries, use the public APIs of Ariba Supplier OnRamp Adapter as described in Using the Logging APIs.
Log Message Storage
When you use Ariba Supplier OnRamp Adapter without Trading Networks, its logging facility stores log messages in an XML file on Integration Server, in the logs/ariba/supplier directory in the Integration Server_directory.
The most current log file is named cxmlmessages.log. The current log file is automatically rolled over" around midnight, and is renamed cxmlmessages.yyyymmddhh.log (where yyyymmddhh is year, month, day, hour).
When you use Ariba Supplier OnRamp Adapter with Trading Networks, messages are logged using the Activity Log feature of Trading Networks.
Enabling Logging
About this task
You use the Config menu to enable logging.
To enable logging
Procedure
Results
If these service names are not shown, click the Set to Default File Logging button (or the Set to Default Trading Networks Logging button) to reset the logging services to the default logging services listed above.
This should only be done if you want to support your own logging implementation, such as writing log entries to a database.
Using the Logging APIs
Ariba Supplier OnRamp Adapter performs logging when it receives requests, when it returns cXML responses, and when it encounters errors in your handler implementation, as described in Log Messages Created by Ariba Supplier OnRamp Adapter. If you want to log additional entries, use the public APIs of Ariba Supplier OnRamp Adapter.
The following table describes the logging services you can use to log messages. You use the same services regardless of whether you use Trading Networks.
| Use this logging service … | To … |
|---|---|
| pub.ariba.supplier.log:logPunchOutSetupEvent | Log informational or error messages about
PunchOutSetupRequest/SetupResponse messages. You specify a log message string to write to the log entry. This service writes this message to the log entry, extracts the following fields from the PunchOutSetupRequest, and writes these fields to the log entry:
You can also log additional data fields if needed. This service also extracts the catalog start page URL from the PunchOutSetupResponse and writes it to the log entry. |
| pub.ariba.supplier.log:logOrderEvent | Logs informational or error messages about
OrderRequest/OrderResponse messages. You specify a log message string to write to the log entry. This service writes this message to the log entry, extracts the following fields from the OrderRequest, and writes these fields to the log entry:
You can also log additional data fields if needed. |
| pub.ariba.supplier.log:logEvent | Log informational or error messages. This service is a general logging service you can use to log any message. This service has many fields you must manually set if you want them to appear in the log entry. |
| logMasterAgreementEvent | Log informational or error messages about
MasterAgreementRequest/MasterAgreementResponse messages. You specify a log message string to write to the log entry. This service writes this message to the log entry, extracts the following fields from the MasterAgreementRequest, and writes these fields to the log entry:
You can also log additional data fields if needed. |
| logInvoiceDetailEvent | Log informational or error messages about
InvoiceDetailRequest/InvoiceDetailResponse messages. You specify a log message string to write to the log entry. This service writes this message to the log entry, extracts the following fields from the InvoiceDetailRequest, and writes these fields to the log entry:
You can also log additional data fields if needed. |
For complete information about how to use these logging services, see pub.ariba.supplier.log.spec.
Viewing Log Entries
About this task
You use Logs to view log entries of cXML messages sent and received.
To view logs
Procedure
Storing OrderRequest Messages
Ariba Supplier OnRamp Adapter is capable of storing OrderRequest messages.
When you use Ariba Supplier OnRamp Adapter Ariba Supplier OnRamp Adapter without Trading Networks, the built-in document store facility of Ariba Supplier OnRamp Adapter stores the messages. To configure the document store facility, you simply enable the default services of Ariba Supplier OnRamp Adapter. Alternatively, you can create your own document store facility.
When you use Ariba Supplier OnRamp Adapter with Trading Networks, the document store facility of Trading Networks stores messages by default. To enable Ariba Supplier OnRamp Adapter to access this document store facility, you simply ensure that its default service retrieving orders from Trading Networks is set.
Configuring the Document Store for NonTrading Networks-Enabled Systems
About this task
To configure the document store facility
Procedure
Configuring the Document Store for Trading Networks-Enabled Systems
About this task
The Trading Networks document store facility stores messages by default. To configure Ariba Supplier OnRamp Adapter to use the Trading Networks document store facility, you simply ensure that the default service to retrieve orders from Trading Networks of Ariba Supplier OnRamp Adapter is set.
To configure the service to retrieve orders stored in Trading Networks