Directing the Apache Java Commons Logger (JCL) to the DataSynapse Logs

Directing the Apache Java Commons Logger (JCL) to the DataSynapse Logs

book

Article ID: KB0087687

calendar_today

Updated On:

Products Versions
TIBCO DataSynapse GridServer -
Not Applicable -

Description

Resolution:
To direct the Apache Java Commons Logger (JCL) to the DataSynapse Logs, add the following lines to your code as early as possible in your initialization:

com.livecluster.util.JCLLogAdapter.use(); org.apache.commons.logging.LogFactory.releaseAll();

The first line forces JCL to use the DataSynapse logger. The second line releases any cached loggers, in case you already created a JCL logger that is not using the DataSynapse logger.

Issue/Introduction

Directing the Apache Java Commons Logger (JCL) to the DataSynapse Logs