Package org.eclipse.jetty.util

Examples of org.eclipse.jetty.util.RolloverFileOutputStream


   
    _logDateCache = new DateCache(_logDateFormat, _logLocale);
    _logDateCache.setTimeZoneID(_logTimeZone);
   
    if (_filename != null)
      _out = new RolloverFileOutputStream(_filename, _append, _retainDays);
    else
      _out = System.out;
   
    super.doStart();
       
View Full Code Here


                  {       
                      new File(dir,fn).delete();  
                  }
              }
            }
            _out = new RolloverFileOutputStream(_filename, _append, _retainDays);
    }
    }
View Full Code Here

    {   
      if (_filename != null)
      {
        File file = new File(_filename);
        file.getParentFile().mkdirs();
        _out = new RolloverFileOutputStream(_filename, _append, _retainDays);
      }
      else
        _out = System.out;
               
      super.doStart();
View Full Code Here

                      new File(dir,fn).delete();  
                  }
              }
            }
            if (_out != null)
              _out = new RolloverFileOutputStream(_filename, _append, _retainDays);
    }
    }
View Full Code Here

    @Override
    protected synchronized void doStart() throws Exception
    {
        if (_filename != null)
        {
            _fileOut = new RolloverFileOutputStream(_filename,_append,_retainDays,TimeZone.getTimeZone(getLogTimeZone()),_filenameDateFormat,null);
            _closeOut = true;
            LOG.info("Opened " + getDatedFilename());
        }
        else
            _fileOut = System.err;
View Full Code Here

                case "--log":
                    _logFile = args[++i];
                    break;
                case "--out":
                    String outFile = args[++i];
                    PrintStream out = new PrintStream(new RolloverFileOutputStream(outFile, true, -1));
                    LOG.info("Redirecting stderr/stdout to " + outFile);
                    System.setErr(out);
                    System.setOut(out);
                    break;
                case "--path":
View Full Code Here

     */
    @Override
    protected void doStart() throws Exception
    {
        if (_out==null)
            _out=new RolloverFileOutputStream("./logs/yyyy_mm_dd.debug.log",true);
        _print=new PrintStream(_out);
       
        for (Connector connector : getServer().getConnectors())
            if (connector instanceof AbstractConnector)
                ((AbstractConnector)connector).addBean(this,false);
View Full Code Here

            _logDateCache.setTimeZoneID(_logTimeZone);
        }

        if (_filename != null)
        {
            _fileOut = new RolloverFileOutputStream(_filename,_append,_retainDays,TimeZone.getTimeZone(_logTimeZone),_filenameDateFormat,null);
            _closeOut = true;
            LOG.info("Opened " + getDatedFilename());
        }
        else
            _fileOut = System.err;
View Full Code Here

     */
    @Override
    protected void doStart() throws Exception
    {
        if (_out==null)
            _out=new RolloverFileOutputStream("./logs/yyyy_mm_dd.debug.log",true);
        _print=new PrintStream(_out);
        super.doStart();
    }
View Full Code Here

     */
    @Override
    protected void doStart() throws Exception
    {
        if (_out==null)
            _out=new RolloverFileOutputStream("./logs/yyyy_mm_dd.debug.log",true);
        _print=new PrintStream(_out);
       
        for (Connector connector : getServer().getConnectors())
            if (connector instanceof AbstractConnector)
                ((AbstractConnector)connector).addBean(this,false);
View Full Code Here

TOP

Related Classes of org.eclipse.jetty.util.RolloverFileOutputStream

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.