Siebel Consumer Goods Handheld Guide > Troubleshooting > Log Files >
Handheld Device Log
The siebel_ log.txt file is found in the /Program Files/Siebel Handheld directory on the handheld device. It is controlled by reg key DefaultLogLevel, with values 0-4. For more information on values, see Siebel Handheld setup.ini Parameters.
The default value of the reg key during installation is 2. This file logs all of the following:
- Database objects that were imported during synchronization.
- All SQL statements generated by the application. You must set a parameter in the setup.ini file to turn this log on. DefaultLogLevel=3 and 4 will log SQL statements to the device log. See Siebel Handheld setup.ini Parameters for more information about setting the parameter.
- All system error messages. You must set a parameter in the setup.ini file to turn this log on. DefaultLogLevel=4 will give the most detailed log with debug info. See Siebel Handheld setup.ini Parameters for more information about setting the parameter.
- All of the messages displayed on the Sync Manager dialog box as well as some basic information about synchronization, such as data source and connect string. You can set the logging level for this file using the DefaultLogLevel parameter in the setup.ini file.
Logging Handheld Synchronization Errors
Siebel Handheld Sync logs all the strings that the user sees in the sync message window as well as many informational messages that do not get displayed in the UI. These informational messages are used to help track down where an error occurred. Siebel Handheld Sync determines which messages get logged based on a value stored in the registry under the key DefaultLogLevel. The values range from 0 to 4; 0 logs all error messages and strings that the user sees, and 4 logs all data that Siebel Handheld Sync sends and receives.
If Siebel Handheld Sync fails, check the siebel_log.txt file immediately after the failure. If you need more detail, increase the logging level of DefaultLogLevel and run Siebel Handheld Sync again. For more information on changing DefaultLogLevel, see Siebel Handheld setup.ini Parameters.
You can determine when and where an error occurs during handheld synchronization by referring to siebel_log.txt and the Handheld Sync Object Manager log.
The device log, siebel_log.txt, shows the last HTTP command that was sent to server, for example, ExecuteLogin, Init, ProcessTransactionEx, ExtractDB, and so on. The Handheld Sync Object Manager log receives the request and invokes the corresponding method.
For example, in the device log (siebel_log.txt), the following indicates that the device is sending an "Init" request to server:
INFO 0x6F46107E 03/30/2005 16:58:27 http ://PPP_PEER:2323/cgce/start.swe?SWEExtSource=siebelpda&SWEExtCmd=Init&PatchLevel=188.8.131.52PDA%5b18356_1] 8.471262E-309NU&SyncFormat=CE0&SyncNodeId=&TimeStamp=1112230707
INFO 0x6F46107E 03/30/2005 16:59:20 <Init ReturnCode="OK" Complete="100">
The server log (Handheld Sync OM log, that is, CompNameObjMgr_enu_xxxxx.log), shows that the "Init" request is received by the server and the "Init" method is invoked:
ObjMgrBusServiceLog InvokeMethod 4 0 2005-03-23 10:45:27 Begin: Business Service 'Handheld Synchronization' invoke method: 'Init' at 10c2bc68
HandheldSyncLog Debug 5 0 2005-03-23 10:45:27 Request Init received
(Where "CompName" is the server component name of the handheld synchronization for the specific handheld application.)
In addition to the device log, customers should also check SalesCEObjMgr_enu_xxxxx.log in Siebel Server (for DSS). For more information on changing logging levels, see Configuring Direct Server Sync Logging Levels.