|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.logging.Handler
java.util.logging.StreamHandler
com.ebmwebsourcing.easycommons.logger.handler.ContextualFileHandler
public class ContextualFileHandler
Contextual file logging Handler.
The ContextualFileHandler writes the log records in different log files depending on the contextual information.
By default the SimpleFormatter class is used for formatting.
Configuration: By default each ContextualFileHandler is initialized using the following LogManager configuration properties. If properties are not defined (or have invalid values) then the specified default values are used.
| Constructor Summary | |
|---|---|
|
ContextualFileHandler()
Construct a default ContextualFileHandler. |
protected |
ContextualFileHandler(java.lang.String basedir,
java.lang.String subdir,
java.lang.String logFilename,
java.util.Properties systemProperties)
|
| Method Summary | |
|---|---|
protected static java.lang.String |
getStringProperty(java.lang.String name,
java.lang.String defaultValue)
|
void |
publish(java.util.logging.LogRecord record)
This method overrides the method publish() of |
| Methods inherited from class java.util.logging.StreamHandler |
|---|
close, flush, isLoggable, setEncoding, setOutputStream |
| Methods inherited from class java.util.logging.Handler |
|---|
getEncoding, getErrorManager, getFilter, getFormatter, getLevel, reportError, setErrorManager, setFilter, setFormatter, setLevel |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected ContextualFileHandler(java.lang.String basedir,
java.lang.String subdir,
java.lang.String logFilename,
java.util.Properties systemProperties)
public ContextualFileHandler()
throws java.io.IOException,
com.ebmwebsourcing.easycommons.properties.PropertiesException
java.io.IOException - If the base directory is not set and a the temporary
directory could not be created to write the logs
com.ebmwebsourcing.easycommons.properties.PropertiesException - If an error occurs when resolving a place holder in the base
directory properties| Method Detail |
|---|
public void publish(java.util.logging.LogRecord record)
publish in class java.util.logging.StreamHandler
protected static final java.lang.String getStringProperty(java.lang.String name,
java.lang.String defaultValue)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||