×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Jan 2006
    Posts
    41

    Post Log4JMini / Log4JME

    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
    Join Date
    Feb 2007
    Posts
    17

    Re: Log4JMini / Log4JME

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