Class ProtocolLogger

java.lang.Object
com.comphenix.protocol.ProtocolLogger

public class ProtocolLogger extends Object
  • Constructor Details

    • ProtocolLogger

      public ProtocolLogger()
  • Method Details

    • init

      public static void init(ProtocolLib plugin)
      Don't call this method from any plugin. Currently only public to test if it fixes a weird error. See GH-740
      Parameters:
      plugin - ProtocolLib
    • log

      public static void log(Level level, String message, Object... args)
      Logs a message to console with a given level.
      Parameters:
      level - Logging level
      message - Message to log
      args - Arguments to format in
    • log

      public static void log(String message, Object... args)
      Logs a method to console with the INFO level.
      Parameters:
      message - Message to log
      args - Arguments to format in
    • log

      public static void log(Level level, String message, Throwable ex)
      Logs a message to console with a given level and exception.
      Parameters:
      level - Logging level
      message - Message to log
      ex - Exception to log
    • debug

      public static void debug(String message, Object... args)
    • debug

      public static void debug(String message, Throwable ex)
    • warnAbove

      public static void warnAbove(MinecraftVersion version, String message, Object... args)