|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthelma.util.Logger
helma.util.FileLogger
public class FileLogger
An extended Logger that writes to a file and rotates files each midnight.
Field Summary |
---|
Fields inherited from class helma.util.Logger |
---|
DEBUG, ERROR, FATAL, INFO, TRACE, WARN |
Constructor Summary | |
---|---|
protected |
FileLogger(java.lang.String directory,
java.lang.String name)
Create a file logger. |
Method Summary | |
---|---|
protected void |
ensureOpen()
This is called by the runner thread to to make sure we have an open writer. |
java.lang.String |
getName()
Return an object which identifies this logger. |
protected java.io.File |
rotateLogFile()
Rotate log files, closing the file writer and renaming the old log file. |
java.lang.String |
toString()
Return a string representation of this Logger |
Methods inherited from class helma.util.Logger |
---|
debug, debug, error, error, fatal, fatal, getCanonicalName, getLogLevel, getSedatedLog, getStackTrace, info, info, isDebugEnabled, isErrorEnabled, isFatalEnabled, isInfoEnabled, isTraceEnabled, isWarnEnabled, log, renderDate, setLogLevel, trace, trace, warn, warn, write |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.apache.commons.logging.Log |
---|
debug, debug, error, error, fatal, fatal, info, info, isDebugEnabled, isErrorEnabled, isFatalEnabled, isInfoEnabled, isTraceEnabled, isWarnEnabled, trace, trace, warn, warn |
Constructor Detail |
---|
protected FileLogger(java.lang.String directory, java.lang.String name)
directory
- the directoryname
- the log file base nameMethod Detail |
---|
protected void ensureOpen()
ensureOpen
in class Logger
protected java.io.File rotateLogFile() throws java.io.IOException
java.io.IOException
- if an i/o error occurredpublic java.lang.String toString()
toString
in class Logger
public java.lang.String getName()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |