Class HytaleLogger

java.lang.Object
com.google.common.flogger.AbstractLogger<HytaleLogger.Api>
com.hypixel.hytale.logger.HytaleLogger

public class HytaleLogger extends com.google.common.flogger.AbstractLogger<HytaleLogger.Api>
  • Method Details

    • init

      public static void init()
    • replaceStd

      public static void replaceStd()
      Note: This must must be after all the other static fields to ensure this class is initialized
    • getLogger

      public static HytaleLogger getLogger()
    • forEnclosingClass

      @Nonnull public static HytaleLogger forEnclosingClass()
    • forEnclosingClassFull

      @Nonnull public static HytaleLogger forEnclosingClassFull()
    • get

      @Nonnull public static HytaleLogger get(String loggerName)
    • at

      public HytaleLogger.Api at(@Nonnull Level level)
      Specified by:
      at in class com.google.common.flogger.AbstractLogger<HytaleLogger.Api>
    • getName

      public String getName()
    • getLevel

      @Nonnull public Level getLevel()
    • setLevel

      public void setLevel(@Nonnull Level level)
    • getSubLogger

      @Nonnull public HytaleLogger getSubLogger(String name)
    • setSentryClient

      public void setSentryClient(@Nonnull io.sentry.IScopes scope)
    • setPropagatesSentryToParent

      public void setPropagatesSentryToParent(boolean propagate)
      Sets whether exceptions logged to this logger should propagate to parent Sentry handlers. When false, exceptions will still be logged to file/console but won't be sent to parent Sentry handlers (e.g., the root logger's Sentry). This logger's own Sentry handler (if set) will still receive exceptions.
      Parameters:
      propagate - true to propagate to parent Sentry handlers (default), false to block