com.caucho.log
Class PathHandler

java.lang.Object
  extended by java.util.logging.Handler
      extended by com.caucho.log.AbstractLogHandler
          extended by com.caucho.log.PathHandler

@Configurable
public class PathHandler
extends AbstractLogHandler

Configures a log handler


Constructor Summary
PathHandler()
           
PathHandler(Path path)
          Convenience method to create a path.
PathHandler(java.lang.String path)
          Convenience method to create a path.
 
Method Summary
 boolean equals(java.lang.Object o)
          Test for equality.
 int hashCode()
          Returns the hash code.
 void init()
          Initialize the log.
protected  void processFlush()
           
protected  void processPublish(java.util.logging.LogRecord record)
           
 void setArchiveFormat(java.lang.String archiveFormat)
          Sets the archive-format
 void setFormatter(java.util.logging.Formatter formatter)
          Sets the formatter.
 void setPath(Path path)
          Sets the path
 void setPathFormat(java.lang.String pathFormat)
          Sets the path-format
 void setRolloverCount(int count)
          Sets the rollover-count
 void setRolloverPeriod(Period rolloverPeriod)
          Sets the rollover-period
 void setRolloverSize(Bytes size)
          Sets the rollover-size
 void setTimestamp(java.lang.String timestamp)
          Sets the timestamp.
 java.lang.String toString()
           
 
Methods inherited from class com.caucho.log.AbstractLogHandler
close, flush, getFilter, printMessage, publish, setFilter
 
Methods inherited from class java.util.logging.Handler
getEncoding, getErrorManager, getFormatter, getLevel, isLoggable, reportError, setEncoding, setErrorManager, setLevel
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PathHandler

public PathHandler()

PathHandler

public PathHandler(Path path)
Convenience method to create a path. Calls init() automatically.


PathHandler

public PathHandler(java.lang.String path)
Convenience method to create a path. Calls init() automatically.

Method Detail

setPath

public void setPath(Path path)
Sets the path


setPathFormat

public void setPathFormat(java.lang.String pathFormat)
Sets the path-format


setArchiveFormat

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


setRolloverPeriod

public void setRolloverPeriod(Period rolloverPeriod)
Sets the rollover-period


setRolloverSize

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


setRolloverCount

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


setTimestamp

public void setTimestamp(java.lang.String timestamp)
Sets the timestamp.


setFormatter

public void setFormatter(java.util.logging.Formatter formatter)
Sets the formatter.

Overrides:
setFormatter in class java.util.logging.Handler

init

@PostConstruct
public void init()
          throws ConfigException
Initialize the log.

Throws:
ConfigException

processPublish

protected void processPublish(java.util.logging.LogRecord record)
Specified by:
processPublish in class AbstractLogHandler

processFlush

protected void processFlush()
Specified by:
processFlush in class AbstractLogHandler

hashCode

public int hashCode()
Returns the hash code.

Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
Test for equality.

Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class AbstractLogHandler