Class CSVBankLogger

java.lang.Object
net.sacredlabyrinth.phaed.simpleclans.loggers.CSVBankLogger
All Implemented Interfaces:
BankLogger

public class CSVBankLogger extends Object implements BankLogger
Logs all bank actions to one CSV file per day.

It accepts BankLog as a record and uses the format from CSVBankLogger.CSVFormatter

Typical usage:


     CSVBankLogger bankLogger = new CSVBankLogger(plugin);
     bankLogger.log(new BankLog(sender, clan, economyResponse, operation, cause, amount));
 
Since:
2.15.3
  • Constructor Details

    • CSVBankLogger

      public CSVBankLogger(SimpleClans plugin)
  • Method Details

    • log

      public void log(BankLog log)
      Specified by:
      log in interface BankLogger
    • getLogger

      @NotNull public @NotNull Logger getLogger()