|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.logging.Handler
org.apache.jdo.tck.util.TCKFileHandler
A JDK1.4 logging Handler class which delegates to a file handler. Configuration: By default each TCKFileHandler is initialized using the following LogManager configuration properties:
BatchTestRunner.changeFileName(String)
.
Constructor Summary | |
TCKFileHandler()
|
Method Summary | |
void |
close()
|
void |
flush()
|
java.lang.String |
getEncoding()
|
java.util.logging.ErrorManager |
getErrorManager()
|
java.util.logging.Filter |
getFilter()
|
java.util.logging.Formatter |
getFormatter()
|
java.util.logging.Level |
getLevel()
|
boolean |
isLoggable(java.util.logging.LogRecord record)
|
void |
publish(java.util.logging.LogRecord record)
|
protected void |
reportError(java.lang.String msg,
java.lang.Exception ex,
int code)
|
protected void |
setAppend(boolean append)
Sets the append property. |
protected void |
setDelegate(org.apache.jdo.tck.util.TCKFileHandler.FileHandlerDelegate delegate)
Sets the delegate. |
void |
setEncoding(java.lang.String encoding)
Sets the encoding property. |
void |
setErrorManager(java.util.logging.ErrorManager em)
|
void |
setFilter(java.util.logging.Filter filter)
Sets the filter property. |
void |
setFormatter(java.util.logging.Formatter formatter)
Sets the formatter property. |
void |
setLevel(java.util.logging.Level level)
Sets the level property. |
protected void |
setPattern(java.lang.String fileName)
Sets the file name fileName property. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TCKFileHandler() throws java.io.IOException, java.lang.SecurityException
java.io.IOException
java.lang.SecurityException
Handler.Handler()
Method Detail |
public void publish(java.util.logging.LogRecord record)
Handler.publish(java.util.logging.LogRecord)
public void close() throws java.lang.SecurityException
java.lang.SecurityException
Handler.close()
public void flush()
Handler.flush()
public java.lang.String getEncoding()
Handler.getEncoding()
public java.util.logging.ErrorManager getErrorManager()
Handler.getErrorManager()
public java.util.logging.Filter getFilter()
Handler.getFilter()
public java.util.logging.Formatter getFormatter()
Handler.getFormatter()
public java.util.logging.Level getLevel()
Handler.getLevel()
protected void reportError(java.lang.String msg, java.lang.Exception ex, int code)
Handler.reportError(java.lang.String, java.lang.Exception, int)
public void setErrorManager(java.util.logging.ErrorManager em)
Handler.setErrorManager(java.util.logging.ErrorManager)
public boolean isLoggable(java.util.logging.LogRecord record)
StreamHandler.isLoggable(java.util.logging.LogRecord)
protected void setPattern(java.lang.String fileName)
fileName
- The fileName to setprotected void setAppend(boolean append)
append
- The append to set.public void setLevel(java.util.logging.Level level)
level
- The level to set.public void setFilter(java.util.logging.Filter filter)
filter
- The filter to set.public void setFormatter(java.util.logging.Formatter formatter)
formatter
- The formatter to set.public void setEncoding(java.lang.String encoding) throws java.lang.SecurityException, java.io.UnsupportedEncodingException
encoding
- The encoding to set.
java.io.UnsupportedEncodingException
java.lang.SecurityException
protected void setDelegate(org.apache.jdo.tck.util.TCKFileHandler.FileHandlerDelegate delegate)
delegate
- The delegate to set.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |