Class LogFileWriter

java.lang.Object
com.sk89q.worldguard.blacklist.logger.LogFileWriter
All Implemented Interfaces:
Comparable<LogFileWriter>

public class LogFileWriter extends Object implements Comparable<LogFileWriter>
  • Field Details

  • Constructor Details

    • LogFileWriter

      public LogFileWriter(String path, BufferedWriter writer)
      Construct the object.
      Parameters:
      path - The path to write to
      writer - The writer for the file
  • Method Details

    • getPath

      public String getPath()
      File path.
      Returns:
      The path the logger is logging to
    • getWriter

      public BufferedWriter getWriter()
      Returns:
      the writer being logged to
    • getLastUse

      public long getLastUse()
      Returns:
      the lastUse
    • updateLastUse

      public void updateLastUse()
      Update last use time.
    • compareTo

      public int compareTo(@Nullable LogFileWriter other)
      Specified by:
      compareTo in interface Comparable<LogFileWriter>