Class Logger

java.lang.Object
com.kamikazejam.kamicommon.nms.Logger

public class Logger extends Object
Lightweight logging utility for the KamiCommon NMS module.

This utility provides a simple logging interface specifically designed for the NMS module when direct access to the main KamiCommon logger is not available. It serves as a bridge to Bukkit's logging system while maintaining consistent message formatting and identification for all KamiCommon-related log entries.

The logger automatically prefixes all messages with "[KamiCommon]" to ensure clear identification of the source, making it easier to track NMS-related operations in server logs and debug complex cross-version compatibility issues.

This implementation is particularly useful during:

  • NMS version detection and provider initialization
  • Cross-version compatibility warnings and errors
  • Performance-critical operations that need minimal logging overhead
  • Debug information for complex NMS wrapper operations

  • Constructor Details

    • Logger

      public Logger()
  • Method Details

    • info

      public static void info(String s)
      Logs an informational message to the server console.

      This method is used for general operational information, version detection results, successful provider initialization, and other non-critical status updates that help administrators understand system behavior.

      Parameters:
      s - the message to log at INFO level
    • warning

      public static void warning(String s)
      Logs a warning message to the server console.

      This method is used for non-fatal issues that may affect functionality, such as version compatibility concerns, deprecated API usage, fallback implementations being used, or potential performance implications.

      Parameters:
      s - the message to log at WARNING level
    • severe

      public static void severe(String s)
      Logs a severe error message to the server console.

      This method is used for critical errors that may prevent proper NMS functionality, such as unsupported Minecraft versions, failed provider initialization, or reflection errors that could compromise system stability.

      Parameters:
      s - the message to log at SEVERE level