public class FileHandler extends Object implements LoggerHandler
| Constructor and Description |
|---|
FileHandler(String pathPattern,
int cacheSize,
String worldName,
Logger logger)
Construct the object.
|
FileHandler(String pathPattern,
String worldName,
Logger logger)
Construct the object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the logger.
|
void |
logEvent(BlacklistEvent event,
String comment)
Log an event.
|
public FileHandler(String pathPattern, String worldName, Logger logger)
pathPattern - The pattern for the log file pathworldName - The name of the worldlogger - The logger used to log errorspublic void logEvent(BlacklistEvent event, String comment)
LoggerHandlerlogEvent in interface LoggerHandlerevent - The eventcomment - The comment to log with the eventpublic void close()
LoggerHandlerclose in interface LoggerHandlerCopyright © 2015. All Rights Reserved.