Download - Oracle Documentation

Transcript
CHAPTER
18
Logs
Java ME Platform SDK uses the log4j logging facility to manage three types of logs:
■
Java ME Platform SDK GUI Logs
■
Device Manager Logs
■
Device Instance Logs
Java ME Platform SDK GUI Logs
The default location for the messages log is: C:\Documents and Settings\
USER_HOME\javame-sdk\toolbar\3.0\var\log.
See also: Device Manager Logs and Device Instance Logs
Device Manager Logs
The device manager log is placed into
toolkit-lib/process/device-manager/log. Logging levels can be configured
in the following XML file:
toolkit-lib/process/device-manager/conf/log4j.xml. Priority value for
category com.sun or VM can be set to 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>
153