public class FileHandler extends java.lang.Object implements LoggerHandler
| Constructor and Description |
|---|
FileHandler(java.lang.String pathPattern,
int cacheSize,
java.lang.String worldName,
java.util.logging.Logger logger)
Construct the object.
|
FileHandler(java.lang.String pathPattern,
java.lang.String worldName,
java.util.logging.Logger logger)
Construct the object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the logger.
|
void |
logEvent(BlacklistEvent event,
java.lang.String comment)
Log an event.
|
public FileHandler(java.lang.String pathPattern,
java.lang.String worldName,
java.util.logging.Logger logger)
pathPattern - The pattern for the log file pathworldName - The name of the worldlogger - The logger used to log errorspublic FileHandler(java.lang.String pathPattern,
int cacheSize,
java.lang.String worldName,
java.util.logging.Logger logger)
pathPattern - The pattern for logfile pathscacheSize - The size of the file cacheworldName - The name of the associated worldlogger - The logger to log errors withpublic void logEvent(BlacklistEvent event, java.lang.String comment)
LoggerHandlerlogEvent in interface LoggerHandlerevent - The eventcomment - The comment to log with the eventpublic void close()
LoggerHandlerclose in interface LoggerHandler