Class TBLogger

java.lang.Object
dev.alphagame.trailblazer.TBLogger

public class TBLogger extends Object
  • Constructor Details

  • Method Details

    • info

      public void info(String message, Object... args)
      Logs a message with the INFO level.
      Parameters:
      message - The message to log.
      args - The arguments to format the message with.
    • info

      public void info(String message)
      Logs a message with the INFO level.
      Parameters:
      message - The message to log.
    • debug

      public void debug(String message, Object... args)
      Logs a message with the DEBUG level.
      Parameters:
      message - The message to log.
      args - The arguments to format the message with.
    • debug

      public void debug(String message)
      Logs a message with the DEBUG level.
      Parameters:
      message - The message to log.
    • warn

      public void warn(String message, Object... args)
      Logs a message with the WARN level.
      Parameters:
      message - The message to log.
      args - The arguments to format the message with.
    • warn

      public void warn(String message)
      Logs a message with the WARN level.
      Parameters:
      message - The message to log.
    • error

      public void error(String message, Object... args)
      Logs a message with the ERROR level.
      Parameters:
      message - The message to log.
      args - The arguments to format the message with.
    • error

      public void error(String message)
      Logs a message with the ERROR level.
      Parameters:
      message - The message to log.
    • fatal

      public void fatal(String message, Object... args)
      Logs a message with the FATAL level.
      Parameters:
      message - The message to log.
      args - The arguments to format the message with.
    • fatal

      public void fatal(String message)
      Logs a message with the FATAL level.
      Parameters:
      message - The message to log.
    • error

      public void error(String message, Throwable throwable)
      Logs an exception with the ERROR level.
      Parameters:
      message - The message to log.
      throwable - The exception to log.
    • warn

      public void warn(String message, Throwable throwable)
      Logs an exception with the WARN level.
      Parameters:
      message - The message to log.
      throwable - The exception to log.
    • info

      public void info(String message, Throwable throwable)
      Logs an exception with the INFO level.
      Parameters:
      message - The message to log.
      throwable - The exception to log.
    • debug

      public void debug(String message, Throwable throwable)
      Logs an exception with the DEBUG level.
      Parameters:
      message - The message to log.
      throwable - The exception to log.
    • fatal

      public void fatal(String message, Throwable throwable)
      Logs an exception with the FATAL level.
      Parameters:
      message - The message to log.
      throwable - The exception to log.
    • isDebugEnabled

      public boolean isDebugEnabled()
      Checks if DEBUG level is enabled for this logger.
      Returns:
      true if DEBUG level is enabled.
    • isInfoEnabled

      public boolean isInfoEnabled()
      Checks if INFO level is enabled for this logger.
      Returns:
      true if INFO level is enabled.
    • isWarnEnabled

      public boolean isWarnEnabled()
      Checks if WARN level is enabled for this logger.
      Returns:
      true if WARN level is enabled.
    • isErrorEnabled

      public boolean isErrorEnabled()
      Checks if ERROR level is enabled for this logger.
      Returns:
      true if ERROR level is enabled.
    • isFatalEnabled

      public boolean isFatalEnabled()
      Checks if FATAL level is enabled for this logger.
      Returns:
      true if FATAL level is enabled.
    • setLogLevel

      public void setLogLevel(LogLevel logLevel)
      Sets the log level for this logger.
      Parameters:
      logLevel - The new log level.
    • getLogLevel

      public LogLevel getLogLevel()
      Gets the current log level of this logger.
      Returns:
      The current log level.
    • getLoggerName

      public String getLoggerName()
      Gets the name of this logger.
      Returns:
      The logger name.
    • getConfiguration

      public LoggerConfiguration getConfiguration()
      Gets the configuration of this logger.
      Returns:
      The logger configuration.
    • setConfiguration

      public void setConfiguration(LoggerConfiguration configuration)
      Sets the configuration for this logger.
      Parameters:
      configuration - The new configuration.