Package edu.stanford.nlp.util.logging

Examples of edu.stanford.nlp.util.logging.NewlineLogFormatter


  private String logPrefix = null;
  public void initLog(File logFilePath) throws IOException {
    FileHandler fh = new FileHandler(logFilePath.toString(), false);
    log.addHandler(fh);
    log.setLevel(Level.FINE);
    fh.setFormatter(new NewlineLogFormatter());
   
    System.out.println("Starting Ssurgeon log, at "+logFilePath.getAbsolutePath()+" date=" + DateFormat.getDateInstance(DateFormat.FULL).format(new Date()));
    log.info("Starting Ssurgeon log, date=" + DateFormat.getDateInstance(DateFormat.FULL).format(new Date()));
  }
View Full Code Here


    }
    try {
      FileHandler fh = new FileHandler(logFileName, false);
      logger.addHandler(fh);
      logger.setLevel(Level.FINE);
      fh.setFormatter(new NewlineLogFormatter());
    } catch (SecurityException e) {
      System.err.println("ERROR: cannot initialize logger!");
      throw e;
    } catch (IOException e) {
      System.err.println("ERROR: cannot initialize logger!");
View Full Code Here

TOP

Related Classes of edu.stanford.nlp.util.logging.NewlineLogFormatter

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.