Re: reusability and applet dilemma

2006-02-22 Thread Jeff Drew
Thanks for the replies. I'm not understanding Ceki's suggestion so I wrote the attached applet to illustrate my misunderstanding. here's the code: public class AppletLogTest extends javax.swing.JApplet { public void init() { Logger root = Logger.getRootLogger(); root.setLeve

RE: reusability and applet dilemma

2006-02-21 Thread Tom Drake
-user@logging.apache.org Subject: Re: reusability and applet dilemma Jeff, Have you considered using the basic techniques already offered by the log4j framework? For instance, you could configure log4j differently when running as an applet. In the init() method of your appplet, you could write

Re: reusability and applet dilemma

2006-02-21 Thread Ceki Gülcü
Jeff, Have you considered using the basic techniques already offered by the log4j framework? For instance, you could configure log4j differently when running as an applet. In the init() method of your appplet, you could write: Logger timestampLogger = Logger.getLogger("TimeStamp"); time

RE: reusability and applet dilemma

2006-02-21 Thread Keith Hatton
A couple of alternatives spring to mind. 1. If you're able and prepared to use a signed applet, the security issues may go away. 2. You could handle Logger initialisation in a static block, catch exceptions and provide a dummy implementation of Logger so that the remainder of your code doesn't th