Package org.apache.log4j.helpers

Examples of org.apache.log4j.helpers.QuietWriter


   
    this.host = host;
    this.port = port;
    this.encoding = encoding;

    this.qw = new QuietWriter(
        new DatagramStringWriter(host, port, encoding),
        errorHandler);
    this.stp = new SingleLineTracerPrintWriter(qw);
  }
View Full Code Here


  public TextPanelAppender(Layout layout, String name) {
    this.layout = layout;
    this.name = name;
    this.sw = new StringWriter();
    this.qw = new QuietWriter(sw, errorHandler);
    this.tp = new TracerPrintWriter(qw);
    setLogTextPanel(new LogTextPanel());
    logPublisher = new LogPublishingThread(logTextPanel, Priority.ERROR, 500);
    //logPublisher = new LogPublishingThread(logTextPanel, null, 500);
  }
View Full Code Here

    setTextPane(new JTextPane());
    createAttributes();
    createIcons();
    this.label="";
    this.sw = new StringWriter();
    this.qw = new QuietWriter(sw, errorHandler);
    this.tp = new TracerPrintWriter(qw);
    this.fancy =true;
  }
View Full Code Here

  public TextPanelAppender(Layout layout, String name) {
    this.layout = layout;
    this.name = name;
    this.sw = new StringWriter();
    this.qw = new QuietWriter(sw, errorHandler);
    this.tp = new TracerPrintWriter(qw);
    setLogTextPanel(new LogTextPanel());
    logPublisher = new LogPublishingThread(logTextPanel, Priority.ERROR, 500);
    //logPublisher = new LogPublishingThread(logTextPanel, null, 500);
  }
View Full Code Here

    setTextPane(new JTextPane());
    createAttributes();
    createIcons();
    this.label="";
    this.sw = new StringWriter();
    this.qw = new QuietWriter(sw, errorHandler);
    this.tp = new TracerPrintWriter(qw);
    this.fancy =true;
  }
View Full Code Here

  /**
   * Sets the quiet writer being used.
   */
  protected void setQWForFiles(Writer writer) {
    this.qw = new QuietWriter(writer, errorHandler);
  }
View Full Code Here

    @param writer An already opened Writer.  */
  public synchronized void setWriter(Writer writer) {
    // close any previously opened writer
    closeWriter();
   
    this.qw = new QuietWriter(writer, errorHandler);

    //this.tp = new TracerPrintWriter(qw);
    writeHeader();
  }
View Full Code Here

   public void write(String string)
   {
      try
      {
         QuietWriter qw = getQuietWriter();
         qw.write(string);
      }
      catch (IOException e)
      {
         throw new RuntimeException(e);
      }
View Full Code Here

         logFile = DEFAULT_LOG_FILE;
      } else
      {
         logFile = "logs/" + logFile;
      }
      QuietWriter qw = testName2Qw.get(logFile);
      if (qw == null)
      {
         File file = new File(logFile);
         if (file.exists())
         {
            file.delete();
            file.createNewFile();
         }
         FileOutputStream ostream = new FileOutputStream(file);
         Writer writer = new OutputStreamWriter(ostream);
         qw = new QuietWriter(writer, errorHandler);
         testName2Qw.put(logFile, qw);
      }
      return qw;
   }
View Full Code Here

    
     This method is overriden by {@link RollingFileAppender}.
   */
  protected
  void setQWForFiles(Writer writer) {
     this.qw = new QuietWriter(writer, errorHandler);
  }
View Full Code Here

TOP

Related Classes of org.apache.log4j.helpers.QuietWriter

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.