Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User seamus_rooney's Avatar
    Join Date
    Jan 2006
    Posts
    41
    Hi,

    I have a problem where I am trying to use Log4jMini as a part of my J2ME application running on an N91 but i am having loads of problems trying to get it to work.

    I have searched everywhere and there is little or no documentation on log4jMini and there is no mention of it on these forums either.

    The problems i am having are I think due to library issues and im not totally sure that this will work in Symbian.

    Can anyone advise if they have any experience with this from before please?

    Also, below is some of the code I am using and it compiles fine but the application crashes out when I run the application on my phone.

    It is only this code as if I remove it, the application runs fine.

    Code:
    import org.apache.log4j.Logger;
    import org.apache.log4j.PropertyConfigurator;
    .
    .
    .
    
    public class ILCMidlet extends MIDlet implements.....
    .
    .
               static Logger cat = Logger.getInstance(ILCMidlet.class.getName());
    .
    .
    public ILCMidlet()
    .
    .
               PropertyConfigurator.configure(configFile);
    		
               cat.info("Awake awake.");
    }
    Basically, what this code should do it just write one log entry "Awake awake" to a log file when the application first starts

    Any help would be greatly appreciated,
    Thanks,
    Seamus

  2. #2
    Registered User singh.jagatjit's Avatar
    Join Date
    Feb 2007
    Posts
    17
    I use Micro Logger a free ware .. work well.. logs to file system, recordtores, IDE console


    Google to find it!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved