maybe not a direct help...

but:
- why dont you use the logging within jump that is already used, imstead 
pf creatin a new file?
- why don't u use in eclipse the debugging enovironment and simply add 
your variables you like to observe

stefan


Sunburned Surveyor schrieb:
> Nothing is ever easy. :]
> 
> I'm trying to use log4j to identify the problems I'm having with
> OpenJUMP's rendering code. I've added a text file called debug_log.txt
> to the /lib directory of the OpenJUMP installation I'm testing.
> 
> I've added the following code to the LayerViewPanel.repaint() method:
> 
> /*
> * Set up logging code here.
> */
> Logger myLogger =
> Logger.getLogger(com.vividsolutions.jump.workbench.ui.LayerViewPanel.class);
> SimpleLayout layout = new SimpleLayout();
>                       
> FileAppender appender = null;
>                       
> try
> {
>      appender = new FileAppender(layout, "debug_log.txt", true);
> }
>                       
> catch(Exception thisException)
> {
>      System.err.println(thisException.getMessage());
> }
>                       
> myLogger.addAppender(appender);
>                       
> Iterator loopThrough = contentIDs.iterator();
>                       
> myLogger.info("This is a test.");
>                       
> while(loopThrough.hasNext())
> {
>      Object contentID = loopThrough.next();
>      Class contentIDClass = contentID.getClass();
>      String className = contentIDClass.getName();
>      myLogger.fatal("The class we couldn't find a renderer for was: "
> + className);
> }
> 
> However, nothing is written to the log file when I execute OpenJUMP. I
> know the LayerViewPanel.repaint() method where I've placed the logging
> code is being exexcuted.
> 
> Any ideas on what I am missing?
> 
> Thanks,
> 
> The Sunburned Surveyor
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Jump-pilot-devel mailing list
> Jump-pilot-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
> 
> 

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

Reply via email to