com.caucho.log
Class RotateLog

java.lang.Object
  extended by com.caucho.log.RotateLog
Direct Known Subclasses:
BootStdoutLogConfig, LogConfig, StderrLog, StdoutLog

public class RotateLog
extends java.lang.Object

Configuration for a rotating log


Constructor Summary
RotateLog()
           
 
Method Summary
 java.lang.String getArchiveFormat()
          Gets the archive format
 Path getPath()
          Gets the output path.
 java.lang.String getPathFormat()
          Gets the output path.
 int getRolloverCount()
          Sets the rollover count
 RotateStream getRotateStream()
          Returns the rotated stream.
 java.lang.String getTagName()
          Returns the tag name.
 java.lang.String getTimestamp()
          Sets the timestamp
 void init()
          Initialize the log.
 void setArchiveFormat(java.lang.String format)
          Sets the archive format.
 void setHref(Path path)
          Sets the output path (backward compat).
 void setPath(Path path)
          Sets the output path.
 void setPathFormat(java.lang.String path)
          Sets the output path.
 void setRolloverCount(int count)
          Sets the rollover count.
 void setRolloverPeriod(Period period)
          Sets the rollover period.
 void setRolloverSize(Bytes size)
          Sets the rollover size.
 void setRolloverSizeBytes(long size)
          Sets the rollover size.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RotateLog

public RotateLog()
Method Detail

getPath

public Path getPath()
Gets the output path.


setPath

public void setPath(Path path)
Sets the output path.


getPathFormat

public java.lang.String getPathFormat()
Gets the output path.


setPathFormat

public void setPathFormat(java.lang.String path)
Sets the output path.


setHref

public void setHref(Path path)
Sets the output path (backward compat).


setRolloverPeriod

public void setRolloverPeriod(Period period)
Sets the rollover period.


setRolloverSize

public void setRolloverSize(Bytes size)
Sets the rollover size.


setRolloverSizeBytes

public void setRolloverSizeBytes(long size)
Sets the rollover size.


getRolloverCount

public int getRolloverCount()
Sets the rollover count


setRolloverCount

public void setRolloverCount(int count)
Sets the rollover count.


getTimestamp

public java.lang.String getTimestamp()
Sets the timestamp


getArchiveFormat

public java.lang.String getArchiveFormat()
Gets the archive format


setArchiveFormat

public void setArchiveFormat(java.lang.String format)
Sets the archive format.


getRotateStream

public RotateStream getRotateStream()
Returns the rotated stream.


getTagName

public java.lang.String getTagName()
Returns the tag name.


init

@PostConstruct
public void init()
          throws ConfigException,
                 java.io.IOException
Initialize the log.

Throws:
ConfigException
java.io.IOException