Class Logger

java.lang.Object
com.kheops.util.Logger

public class Logger extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Deprecated, for removal: This API element is subject to removal in a future version.
    static final int
    Deprecated, for removal: This API element is subject to removal in a future version.
    static final int
    Deprecated, for removal: This API element is subject to removal in a future version.
    static final int
    Deprecated, for removal: This API element is subject to removal in a future version.
    static final int
    Deprecated, for removal: This API element is subject to removal in a future version.
    static final int
    Deprecated, for removal: This API element is subject to removal in a future version.
    static final int
    Deprecated, for removal: This API element is subject to removal in a future version.
    static final String
     
    static final String
    Deprecated, for removal: This API element is subject to removal in a future version.
    static final String
    Deprecated, for removal: This API element is subject to removal in a future version.
    static final String
    Deprecated, for removal: This API element is subject to removal in a future version.
    static final String
    Deprecated, for removal: This API element is subject to removal in a future version.
    static final String
    Deprecated, for removal: This API element is subject to removal in a future version.
    static final String
    Deprecated, for removal: This API element is subject to removal in a future version.
    static final String
    Deprecated, for removal: This API element is subject to removal in a future version.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    all(String message)
     
    static void
    all(String message, String username)
     
    static void
    all(String message, Throwable throwable)
     
    static void
    all(String message, Throwable throwable, String username)
     
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
    static void
    debug(String message)
     
    static void
    debug(String message, String username)
     
    static void
    debug(String message, Throwable throwable)
     
    static void
    debug(String message, Throwable throwable, String username)
     
    static void
    error(String message)
     
    static void
    error(String message, String username)
     
    static void
    error(String message, Throwable throwable)
     
    static void
    error(String message, Throwable throwable, String username)
     
    static void
    fatal(String message)
     
    static void
    fatal(String message, String username)
     
    static void
    fatal(String message, Throwable throwable)
     
    static void
    fatal(String message, Throwable throwable, String username)
     
    static Logger
    Deprecated, for removal: This API element is subject to removal in a future version.
    static org.apache.logging.log4j.Level
     
    int
    Deprecated, for removal: This API element is subject to removal in a future version.
    static void
    info(String message)
     
    static void
    info(String message, String username)
     
    static void
    info(String message, Throwable throwable)
     
    static void
    info(String message, Throwable throwable, String username)
     
    void
    init(String logPath, String rolloverSchedule, boolean logToConsole, String logLevel, int fileAgeLimit, String logFileName)
    Deprecated, for removal: This API element is subject to removal in a future version.
    static boolean
     
    static boolean
     
    static boolean
     
    static boolean
     
    static boolean
     
    static boolean
     
    void
    log(int type, String message)
    Deprecated, for removal: This API element is subject to removal in a future version.
    void
    log(int type, String message, String userName)
    Deprecated, for removal: This API element is subject to removal in a future version.
    void
    log(int type, String message, Throwable exception)
    Deprecated, for removal: This API element is subject to removal in a future version.
    void
    log(int level, String message, Throwable throwable, String userName)
    Deprecated, for removal: This API element is subject to removal in a future version.
    static void
    log(org.apache.logging.log4j.Level level, String message, Throwable throwable, Map<String,String> threadContextValues)
     
    static void
    setLevel(org.apache.logging.log4j.Level level)
     
    void
    setLogLevel(int logLevel)
    Deprecated, for removal: This API element is subject to removal in a future version.
    void
    setLogPath(String logPath)
    Deprecated, for removal: This API element is subject to removal in a future version.
    static String
    toLevel(int level)
    Deprecated, for removal: This API element is subject to removal in a future version.
    static int
    toLevel(String level)
    Deprecated, for removal: This API element is subject to removal in a future version.
    static void
    trace(String message)
     
    static void
    trace(String message, String username)
     
    static void
    trace(String message, Throwable throwable)
     
    static void
    trace(String message, Throwable throwable, String username)
     
    static void
    warning(String message)
     
    static void
    warning(String message, String username)
     
    static void
    warning(String message, Throwable throwable)
     
    static void
    warning(String message, Throwable throwable, String username)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • LOG_PATTERN

      public static final String LOG_PATTERN
      See Also:
    • STR_LEVEL_ALL

      @Deprecated(forRemoval=true) public static final String STR_LEVEL_ALL
      Deprecated, for removal: This API element is subject to removal in a future version.
      See Also:
    • STR_LEVEL_DEBUG

      @Deprecated(forRemoval=true) public static final String STR_LEVEL_DEBUG
      Deprecated, for removal: This API element is subject to removal in a future version.
      See Also:
    • STR_LEVEL_INFO

      @Deprecated(forRemoval=true) public static final String STR_LEVEL_INFO
      Deprecated, for removal: This API element is subject to removal in a future version.
      See Also:
    • STR_LEVEL_WARNING

      @Deprecated(forRemoval=true) public static final String STR_LEVEL_WARNING
      Deprecated, for removal: This API element is subject to removal in a future version.
      See Also:
    • STR_LEVEL_ERROR

      @Deprecated(forRemoval=true) public static final String STR_LEVEL_ERROR
      Deprecated, for removal: This API element is subject to removal in a future version.
      See Also:
    • STR_LEVEL_FATAL

      @Deprecated(forRemoval=true) public static final String STR_LEVEL_FATAL
      Deprecated, for removal: This API element is subject to removal in a future version.
      See Also:
    • STR_LEVEL_OFF

      @Deprecated(forRemoval=true) public static final String STR_LEVEL_OFF
      Deprecated, for removal: This API element is subject to removal in a future version.
      See Also:
    • LEVEL_ALL

      @Deprecated(forRemoval=true) public static final int LEVEL_ALL
      Deprecated, for removal: This API element is subject to removal in a future version.
    • LEVEL_DEBUG

      @Deprecated(forRemoval=true) public static final int LEVEL_DEBUG
      Deprecated, for removal: This API element is subject to removal in a future version.
    • LEVEL_INFO

      @Deprecated(forRemoval=true) public static final int LEVEL_INFO
      Deprecated, for removal: This API element is subject to removal in a future version.
    • LEVEL_WARNING

      @Deprecated(forRemoval=true) public static final int LEVEL_WARNING
      Deprecated, for removal: This API element is subject to removal in a future version.
    • LEVEL_ERROR

      @Deprecated(forRemoval=true) public static final int LEVEL_ERROR
      Deprecated, for removal: This API element is subject to removal in a future version.
    • LEVEL_FATAL

      @Deprecated(forRemoval=true) public static final int LEVEL_FATAL
      Deprecated, for removal: This API element is subject to removal in a future version.
    • LEVEL_OFF

      @Deprecated(forRemoval=true) public static final int LEVEL_OFF
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Constructor Details

    • Logger

      public Logger()
  • Method Details

    • getInstance

      @Deprecated(forRemoval=true) public static Logger getInstance()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Retrieve an instance of logger by name or create one if it doesn't exist. Deprecated --- Use static methods
    • init

      @Deprecated(forRemoval=true) public void init(String logPath, String rolloverSchedule, boolean logToConsole, String logLevel, int fileAgeLimit, String logFileName)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Deprecated --- Does nothing
    • setLogPath

      @Deprecated(forRemoval=true) public void setLogPath(String logPath)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Deprecated --- Does nothing
    • setLogLevel

      @Deprecated(forRemoval=true) public void setLogLevel(int logLevel)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Deprecated --- Use Logger.setLevel(Level)
      Parameters:
      logLevel - The logLevel to set.
    • getLogLevel

      @Deprecated(forRemoval=true) public int getLogLevel()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Deprecated --- Use Logger.getLevel()
    • setLevel

      public static void setLevel(org.apache.logging.log4j.Level level)
    • getLevel

      public static org.apache.logging.log4j.Level getLevel()
    • isAllEnabled

      public static boolean isAllEnabled()
    • isDebugEnabled

      public static boolean isDebugEnabled()
    • isInfoEnabled

      public static boolean isInfoEnabled()
    • isWarningEnabled

      public static boolean isWarningEnabled()
    • isErrorEnabled

      public static boolean isErrorEnabled()
    • isFatalEnabled

      public static boolean isFatalEnabled()
    • toLevel

      @Deprecated(forRemoval=true) public static int toLevel(String level)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • toLevel

      @Deprecated(forRemoval=true) public static String toLevel(int level)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • log

      @Deprecated(forRemoval=true) public void log(int type, String message)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Logs a new message of the specified type.
      Parameters:
      type - the type of the message
      message - the text of the message Deprecated --- Use static methods
    • log

      @Deprecated(forRemoval=true) public void log(int type, String message, String userName)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Logs a new message of the specified type tagged to the specified user.
      Parameters:
      type - the type of the message
      message - the text of the message
      userName - the user this message will be tagged to Deprecated --- Use static methods
    • log

      @Deprecated(forRemoval=true) public void log(int type, String message, Throwable exception)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Logs a new message of the specified type and includes the stack trace of the specified exception.
      Parameters:
      type - the type of the message
      message - the text of the message
      exception - a Throwable object for which the stack trace must be written Deprecated --- Use static methods
    • log

      @Deprecated(forRemoval=true) public void log(int level, String message, Throwable throwable, String userName)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Logs a new message of the specified level tagged to the specified user. Includes the stack trace of the specified exception.
      Parameters:
      level - the level of the message
      message - the text of the message
      throwable - a Throwable object for which the stack trace must be written
      userName - the user this message will be tagged to Deprecated --- Use static methods
    • close

      @Deprecated(forRemoval=true) public void close()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Deprecated --- Does nothing
    • all

      public static void all(String message)
    • all

      public static void all(String message, Throwable throwable)
    • all

      public static void all(String message, String username)
    • all

      public static void all(String message, Throwable throwable, String username)
    • debug

      public static void debug(String message)
    • debug

      public static void debug(String message, Throwable throwable)
    • debug

      public static void debug(String message, String username)
    • debug

      public static void debug(String message, Throwable throwable, String username)
    • trace

      public static void trace(String message)
    • trace

      public static void trace(String message, Throwable throwable)
    • trace

      public static void trace(String message, String username)
    • trace

      public static void trace(String message, Throwable throwable, String username)
    • error

      public static void error(String message)
    • error

      public static void error(String message, String username)
    • error

      public static void error(String message, Throwable throwable)
    • error

      public static void error(String message, Throwable throwable, String username)
    • fatal

      public static void fatal(String message)
    • fatal

      public static void fatal(String message, Throwable throwable)
    • fatal

      public static void fatal(String message, String username)
    • fatal

      public static void fatal(String message, Throwable throwable, String username)
    • info

      public static void info(String message)
    • info

      public static void info(String message, Throwable throwable)
    • info

      public static void info(String message, String username)
    • info

      public static void info(String message, Throwable throwable, String username)
    • warning

      public static void warning(String message)
    • warning

      public static void warning(String message, String username)
    • warning

      public static void warning(String message, Throwable throwable)
    • warning

      public static void warning(String message, Throwable throwable, String username)
    • log

      public static void log(org.apache.logging.log4j.Level level, String message, Throwable throwable, Map<String,String> threadContextValues)