Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-53653

Logger is not assigned

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • trilead-api-plugin
    • None
    • trilead-ssh2-build-217-jenkins-14

      If you pass a logger as parameter, the following method would not assigned the value

      public synchronized void enableDebugging(boolean enable, DebugLogger logger)
      {
       Logger.enabled = enable;
      
       if (enable == false)
       {
       Logger.logger = null;
       }
       else
       {
       if (logger == null)
       {
       Logger.logger = new DebugLogger()
       {
      
       public void log(int level, String className, String message)
       {
       long now = System.currentTimeMillis();
       System.err.println(now + " : " + className + ": " + message);
       }
       };
       }
       }
      }
      
      

            ifernandezcalvo Ivan Fernandez Calvo
            ifernandezcalvo Ivan Fernandez Calvo
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: