Interface PdfLog.Logger

  • All Implemented Interfaces:

    
    public interface PdfLog.Logger
    
                        

    Interface for custom loggers that can be registered in PdfLog to implement custom logging strategies.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      boolean isLogged(int priority, @NonNull() String tag) Override this method to enable or disable logging for log with given priority and tag.
      abstract void log(int priority, @NonNull() String tag, @NonNull() String message, @Nullable() Throwable throwable) Implement this method to log messages.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • isLogged

         boolean isLogged(int priority, @NonNull() String tag)

        Override this method to enable or disable logging for log with given priority and tag. By default all log requests are handled.

        Parameters:
        priority - The priority of this log message.
        tag - Tag to identify the source of this log message.
      • log

         abstract void log(int priority, @NonNull() String tag, @NonNull() String message, @Nullable() Throwable throwable)

        Implement this method to log messages.

        Parameters:
        priority - The priority of this log message.
        tag - Tag to identify the source of this log message.
        message - Message that should be logged.
        throwable - Optional throwable attached to log message.