Package org.eclipse.wst.wsi.internal.core.log.impl

Examples of org.eclipse.wst.wsi.internal.core.log.impl.LogWriterImpl


  public void writeLog(Log log)
  {
    try
    {
      // Get log writer
      LogWriter logWriter = new LogWriterImpl();
   
      logWriter.setWriter(ifile.getLocation().toString());
     
      // Write start of log file
      logWriter.write(new StringReader(log.getStartXMLString("")));
   
      // Write monitor tool information
      String monitorInfo = generateMonitorToolInfo();
      logWriter.write(new StringReader(monitorInfo));

      for (int i=0; i<log.getEntryCount(); i++)
      {
        MessageEntry me = log.getLogEntry(i);
        logWriter.write(new StringReader(me.toXMLString("")));
      }
      logWriter.write(new StringReader(log.getEndXMLString("")));
      logWriter.close();
    }
    catch (Exception e)
    {
      System.out.println("Exception thrown when printing log file.");
    }
View Full Code Here


  /**
   * Create log writer.
   */
  public LogWriter newLogWriter()
  {
    return new LogWriterImpl();
  }
View Full Code Here

TOP

Related Classes of org.eclipse.wst.wsi.internal.core.log.impl.LogWriterImpl

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.