@Configurable public class PathHandler extends AbstractLogHandler
| Constructor and Description |
|---|
PathHandler() |
PathHandler(Path path)
Convenience method to create a path.
|
PathHandler(java.lang.String path)
Convenience method to create a path.
|
| Modifier and Type | Method and Description |
|---|---|
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() |
close, flush, getFilter, printMessage, publish, setFilterpublic PathHandler()
public PathHandler(Path path)
public PathHandler(java.lang.String path)
public void setPath(Path path)
public void setPathFormat(java.lang.String pathFormat)
public void setArchiveFormat(java.lang.String archiveFormat)
public void setRolloverPeriod(Period rolloverPeriod)
public void setRolloverSize(Bytes size)
public void setRolloverCount(int count)
public void setTimestamp(java.lang.String timestamp)
public void setFormatter(java.util.logging.Formatter formatter)
setFormatter in class java.util.logging.Handler@PostConstruct public void init() throws ConfigException
ConfigExceptionprotected void processPublish(java.util.logging.LogRecord record)
processPublish in class AbstractLogHandlerprotected void processFlush()
processFlush in class AbstractLogHandlerpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class AbstractLogHandler