Package net.sf.microlog.core.appender

Examples of net.sf.microlog.core.appender.ConsoleAppender


      if (firstLogEvent == true) {
        if (nofAppenders == 0) {
          System.err
              .println("Warning! No appender is set, using ConsoleAppender with PatternFormatter");
          Appender appender = new ConsoleAppender();
          appender.setFormatter(new PatternFormatter());
          addAppender(appender);
          nofAppenders++;
        }

        try {
          open();
        } catch (IOException e) {
          System.err.println("Failed to open the log. " + e);
        }

        stopWatch.start();
        firstLogEvent = false;
      }

      for (int index = 0; index < nofAppenders; index++) {
        Appender appender = (Appender) appenderList.elementAt(index);
        appender.doLog(clientID, name, stopWatch.getCurrentTime(),
            level, message, t);
      }
    }
  }
View Full Code Here

TOP

Related Classes of net.sf.microlog.core.appender.ConsoleAppender

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.