Skip Headers
Oracle® Java Micro Edition Software Development Kit Developer's Guide
Release 3.3 for Eclipse on Windows
E37550-03
  Go To Table Of Contents
Contents
Go To Index
Index

Previous
Previous
 
Next
Next
 

13 Logs

This chapter describes how to use the Oracle Java ME SDK log4j logging facility to manage Device Manager and Device Instance logs.

Logging levels in the logging facility are configurable using XML files.

13.1 Device Manager Logs

The device manager log is placed into:

username\javame-sdk\3.3\work\devicename\device-manager.log

You can configure logging levels 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: FATAL, ERROR, WARN, INFO, DEBUG, TRACE (ordered from least to most verbose).

Example 13-1 Setting a Category Value

<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>

13.2 Device Instance Logs

Each device (or emulator) instance writes its own log in to its directory.

username\javame-sdk\3.3\work\devicename\device.log

log4j.xml controls the verbosity of the device instance logs, as described in "Device Manager Logs."