Interface JDALogger.LazyEvaluation

Enclosing class:
JDALogger
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface JDALogger.LazyEvaluation
Functional interface used for JDALogger.getLazyString(LazyEvaluation) to lazily construct a String.
  • Method Details

    • getString

      String getString() throws Exception
      This method is used by JDALogger.getLazyString(LazyEvaluation) when SLF4J requests String construction.
      The String returned by this is used to construct the log message.
      Returns:
      The String for log message
      Throws:
      Exception - To allow lazy evaluation of methods that might throw exceptions