Explicit Logging

You can use this code to provide explicit logging in the business service:

      //RI: call to logger - log the beginning of the business service method 
processing using app ID 
       context.getBSSVLogger().app(context,
                  "@@@@@@Begin call for BSSV AddressBookProcessor.
addAddressBook",
                  "\n",
                  internalVO.toString(),
                  null)
       ...
   }

Many logging methods exist for signifying APP, DEBUG, WARN, or SEVERE conditions. Plain text as well as exceptions can be passed as parameters to these methods for inclusion in the logs.

This information is logged into the jas.log file as a result of the preceding sample code:

17 Jul 2006 16:53:51,125 [Line ?] [APP   ]  - [oracle.e1.foundation.util.
IBSSVLogger]
       [Context ID: 10.139.87.66:2751:1153176823468]    
       @@@@@@Begin call for BSSV AddressBookProcessor.addAddressBook