2 Replies Latest reply: Dec 15, 2011 9:47 PM by 904249 RSS

    How to enable the logs in applets

    904249
      I have a signed jar which uses commons-logging all the logs are in debug mode how to set the debug on to view the logs in the java console.

      i have tried the following things
      jre/log properties is set to debug
      applet debug is set to true
      there is a SimpleLogFactory class which extends the Log Factory class.. i have set the levels to 2 here for debug mode
      i am still not able to see the log.debug statements.
        • 1. Re: How to enable the logs in applets
          862752
          http://docs.oracle.com/javase/1.5.0/docs/guide/deployment/deployment-guide/jcp.html

          cheack this url you will find some good help
          • 2. Re: How to enable the logs in applets
            904249
            i have tried doing setting the run time params as well it does not work:(
            i can see the applet debug but the applet calls other classes which uses log.debug stmts i am not able to see those debugs

            in the init mrthod of my applet i have
            public void init()
            /*     */   {
            /*  40 */     if (log == null)
            /*     */     {
            /*  47 */       if ((super.getParameter("DEBUG_ON") != null) && (!_initialized))
            /*     */       {
            /*  49 */         SimpleLogFactory.setLogLevel(2);
            /*     */       }
            /*     */       else
            /*     */       {
            /*  53 */         SimpleLogFactory.setLogLevel(4);
            /*     */       }
            /*     */ 
            /*  56 */       log = LogFactory.getLog(UploadApplet.class);
            /*     */     }