Class SuperstreamLogger

java.lang.Object
ai.superstream.util.SuperstreamLogger

public class SuperstreamLogger extends Object
Custom logger for the Superstream library. All logs will have the "superstream" prefix.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    debug(String message)
    Log a debug message with the superstream prefix.
    void
    debug(String message, Object... args)
    Log a debug message with parameters and the superstream prefix.
    void
    error(String message)
    Log an error message with the superstream prefix.
    void
    error(String message, Object... args)
    Log an error message with parameters and the superstream prefix.
    void
    error(String message, Throwable throwable)
    Log an error message with an exception and the superstream prefix.
    getLogger(Class<?> clazz)
    Get a logger for the specified class.
    void
    info(String message)
    Log an info message with the superstream prefix.
    void
    info(String message, Object... args)
    Log an info message with parameters and the superstream prefix.
    void
    warn(String message)
    Log a warning message with the superstream prefix.
    void
    warn(String message, Object... args)
    Log a warning message with parameters and the superstream prefix.

    Methods inherited from class java.lang.Object

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

    • getLogger

      public static SuperstreamLogger getLogger(Class<?> clazz)
      Get a logger for the specified class.
      Parameters:
      clazz - The class to get the logger for
      Returns:
      A new SuperstreamLogger instance
    • info

      public void info(String message)
      Log an info message with the superstream prefix.
      Parameters:
      message - The message to log
    • info

      public void info(String message, Object... args)
      Log an info message with parameters and the superstream prefix.
      Parameters:
      message - The message to log
      args - The parameters for the message
    • warn

      public void warn(String message)
      Log a warning message with the superstream prefix.
      Parameters:
      message - The message to log
    • warn

      public void warn(String message, Object... args)
      Log a warning message with parameters and the superstream prefix.
      Parameters:
      message - The message to log
      args - The parameters for the message
    • error

      public void error(String message)
      Log an error message with the superstream prefix.
      Parameters:
      message - The message to log
    • error

      public void error(String message, Object... args)
      Log an error message with parameters and the superstream prefix.
      Parameters:
      message - The message to log
      args - The parameters for the message
    • error

      public void error(String message, Throwable throwable)
      Log an error message with an exception and the superstream prefix.
      Parameters:
      message - The message to log
      throwable - The exception to log
    • debug

      public void debug(String message)
      Log a debug message with the superstream prefix.
      Parameters:
      message - The message to log
    • debug

      public void debug(String message, Object... args)
      Log a debug message with parameters and the superstream prefix.
      Parameters:
      message - The message to log
      args - The parameters for the message