Interface PLogger

All Known Implementing Classes:
PLog

public interface PLogger
Interface for a simple logger with multiple log levels.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Logs a debug-level message.
    void
    Logs an error-level message.
    void
    Logs an error-level message along with a Throwable.
    Returns the name of this logger, typically representing the source or context of the log messages.
    void
    info(String msg)
    Logs an info-level msg.
    void
    warn(String msg)
    Logs a warning-level message.
  • Method Details

    • getName

      String getName()
      Returns the name of this logger, typically representing the source or context of the log messages.
      Returns:
      the logger name
    • debug

      void debug(String msg)
      Logs a debug-level message. Mainly used by the dev/devs.
      Parameters:
      msg - the message to log
    • info

      void info(String msg)
      Logs an info-level msg. Used for general info messages.
      Parameters:
      msg - the message to log
    • warn

      void warn(String msg)
      Logs a warning-level message. Indicates a potential issue.
      Parameters:
      msg - the message to log
    • error

      void error(String msg)
      Logs an error-level message. Indicates a failure.
      Parameters:
      msg - the message to log
    • error

      void error(String msg, Throwable t)
      Logs an error-level message along with a Throwable.
      Parameters:
      msg - the message to log
      t - the Throwable to include in the log