Skip Headers
Oracle® Java Micro Edition Software Development Kit Developer's Guide
Release 3.0.5 for Windows
E24265-04
  Go To Table Of Contents
Contents
Go To Index
Index

Previous
Previous
 
Next
Next
 

14 Logs

Java ME SDK uses the log4j logging facility to manage Device Manager and Device Instance logs.

14.1 Device Manager Logs

The device manager log is placed into:

C:\Documents and Settings\user\javame-sdk\version\log

Logging levels can be configured in the following XML file:

installdir\toolkit-lib\process\device-manager\conf\log4j.xml

A priority value for the categories com.sun or VM can be set to the following levels: ERROR, WARN, INFO, DEBUG, TRACE (ordered from least to most verbose).

<category name="com.sun">
   <priority value="DEBUG"/>
   <appender-ref ref="CONSOLE-ALL"/>
   <appender-ref ref="FILE"/>
</category>
   
<category name="VM">
   <priority value="INFO"/>
   <appender-ref ref="CONSOLE-ALL"/>
   <appender-ref ref="FILE"/>
</category>

14.2 Device Instance Logs

Each device (or emulator) instance writes its own log into its directory. See Table 8-1 to correlate the directory number and the device name.

C:\Documents and Settings\user\javame-sdk\version\work\device-#\device.log

The verbosity of the device instance log is controlled by the log4j.xml file, as described in Section 14.1, "Device Manager Logs".

A priority value for the categories com.sun or VM can be set to the following levels: ERROR, WARN, INFO, DEBUG, TRACE (ordered from least to most verbose. The verbosity of the device instance log is controlled by log4j.xml.