Class ErrorLogger

  • All Implemented Interfaces:
    java.util.function.Consumer<TelegramException>

    public class ErrorLogger
    extends java.lang.Object
    implements java.util.function.Consumer<TelegramException>
    Logs exceptions with no further action. When sensitive is true, sensitive information related to the exception will be printed. The sensitive flag is useful for debugging, but should be set to false in production.
    • Constructor Detail

      • ErrorLogger

        public ErrorLogger​(java.lang.String identifier,
                           java.util.logging.Logger logger,
                           boolean sensitive)
      • ErrorLogger

        public ErrorLogger()