Class Logger


  • public final class Logger
    extends Object
    Copyright 2021 by Michael Schmidt, Hirola Consulting This software us licensed under the AGPL-3.0 or later. Layer for logging of library. Encapsulated the use of logging tools.
    Since:
    1.1.1
    Author:
    Michael Schmidt (Hirola)
    • Method Detail

      • getInstance

        public static Logger getInstance​(String logFileName)
        Get an instance of logger.
        Parameters:
        logFileName - name of the log file
        Returns:
        The logger object for logging.
      • info

        public void info​(String tag,
                         String message,
                         @Nullable
                         @Nullable Exception exception)
        Create an info log entry.
        Parameters:
        tag - source of log entry
        message - log message
        exception - log exception
      • warning

        public void warning​(String tag,
                            String message,
                            @Nullable
                            @Nullable Exception exception)
        Create an info log entry.
        Parameters:
        tag - source of log entry
        message - log message
        exception - log exception
      • error

        public void error​(String tag,
                          String message,
                          @Nullable
                          @Nullable Exception exception)
        Create an error log entry.
        Parameters:
        tag - source of log entry
        message - log message
        exception - log exception
      • debug

        public void debug​(String tag,
                          String message,
                          @Nullable
                          @Nullable Exception exception)
        Create an debug log entry.
        Parameters:
        tag - source of log entry
        message - log message
        exception - log exception