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 TypeMethodDescriptionvoid
close()
Close the logger.void
logEvent
(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:LoggerHandler
Log an event.- Specified by:
logEvent
in interfaceLoggerHandler
- Parameters:
event
- The eventcomment
- The comment to log with the event
-
close
public void close()Description copied from interface:LoggerHandler
Close the logger.- Specified by:
close
in interfaceLoggerHandler
-