Package nz.govt.natlib.meta.log

Examples of nz.govt.natlib.meta.log.FileLogger$XMLFormatter


  public void saveTo(File file) {
    try {
      if (!file.exists()) {
        file.createNewFile();
      }
      FileLogger logger = new FileLogger(file);
      for (int i = 0; i < viewModel.getRowCount(); i++) {
        logger.logMessage((LogMessage) viewModel.getRow(i));
      }
      logger.close();
      LogMessage msg = new LogMessage(LogMessage.WORTHLESS_CHATTER, null,
          "Saved logfile: " + file, "");
      LogManager.getInstance().logMessage(msg);
    } catch (Exception ex) {
      LogMessage msg = new LogMessage(LogMessage.ERROR, ex,
View Full Code Here


      // already...
      Main main = new Main();
      Config.getInstance();
      LogManager.getInstance().addLog(main.logModel);
      LogManager.getInstance().addLog(
          new FileLogger(Config.getInstance().createLogFileName()));
      LogManager.getInstance().logMessage(
          LogMessage.WORTHLESS_CHATTER,
          "Starting Application: "
              + Config.getInstance().getApplicationName());
View Full Code Here

TOP

Related Classes of nz.govt.natlib.meta.log.FileLogger$XMLFormatter

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.