Handheld Phone debug output

Version 1
    This document was generated from CDN thread

    Created by: Russell Mitchell on 03-11-2010 03:25:02 PM
    I'm looking for a way to store debug output to a file, along with a simple method to retrieve the file from the phone.  Is it possible for a midlet to write to the system messages file?

    Subject: RE: Handheld Phone debug output
    Replied by: Russell Mitchell on 03-11-2010 04:43:05 PM
    System.err.println prints to the messages file.

    Subject: RE: Handheld Phone debug output
    Replied by: Vinayak Kagalkar on 04-11-2010 04:25:32 PM
    System.err.println prints to the messages file.

    Currently, MIDlet can use System.out.println() and system.err.println() to write traces/logs. We do not provide separate API/location to store api. All the ourputs of System.out.println() and System.err.println() goes to device syslog messages Those syslog files can be extracted using device Web intetrface.


    Subject: RE: Handheld Phone debug output
    Replied by: Russell Mitchell on 04-11-2010 08:54:00 PM
    As of a couple hours ago, I'm no longer seeing my System.err.println messages in the system messages file, and for the life of me I can't figure out what I've done wrong.  Any ideas on how to get em back?
     

    Subject: RE: Handheld Phone debug output
    Replied by: Conrad Price on 24-11-2010 07:11:14 PM
    Although a midlet does have some access to storage space in the phone, I don't think that is accessible from the web page for down load. Normally if people want to keep the syslog fils on the phone, you enable the "Preserve logs" setting on the trace settings page, and then any log files would be written to nvram and can be downloaded later

    Subject: RE: Handheld Phone debug output
    Replied by: David Staudt on 06-01-2011 12:37:45 AM
    By default the phone is configured to reset all tracing (i.e. back to 'error' level), is it possible you reset the phone between tracing sessions?  If you so you may need to re-configure tracing and/or make the settings persist.