Class FileHandler
java.lang.Object
com.sk89q.worldguard.blacklist.logger.FileHandler
- All Implemented Interfaces:
LoggerHandler
-
Constructor Summary
ConstructorsConstructorDescriptionFileHandler(String pathPattern, int cacheSize, String worldName, Logger logger)Construct the object.FileHandler(String pathPattern, String worldName, Logger logger)Construct the object. -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Close the logger.voidlogEvent(BlacklistEvent event, String comment)Log an event.
-
Constructor Details
-
FileHandler
Construct the object.- Parameters:
pathPattern- The pattern for the log file pathworldName- The name of the worldlogger- The logger used to log errors
-
FileHandler
Construct the object.- Parameters:
pathPattern- The pattern for logfile pathscacheSize- The size of the file cacheworldName- The name of the associated worldlogger- The logger to log errors with
-
-
Method Details
-
logEvent
Description copied from interface:LoggerHandlerLog an event.- Specified by:
logEventin interfaceLoggerHandler- Parameters:
event- The eventcomment- The comment to log with the event
-
close
public void close()Description copied from interface:LoggerHandlerClose the logger.- Specified by:
closein interfaceLoggerHandler
-