Contents
Class HytaleLogger
java.lang.Object
com.google.common.flogger.AbstractLogger<HytaleLogger.Api>
com.hypixel.hytale.logger.HytaleLogger
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic HytaleLoggerstatic HytaleLoggerstatic HytaleLoggergetLevel()static HytaleLoggergetName()getSubLogger(String name) static voidinit()static voidNote: This must must be after all the other static fields to ensure this class is initializedvoidvoidsetPropagatesSentryToParent(boolean propagate) Sets whether exceptions logged to this logger should propagate to parent Sentry handlers.voidsetSentryClient(io.sentry.IScopes scope) Methods inherited from class com.google.common.flogger.AbstractLogger
atConfig, atFine, atFiner, atFinest, atInfo, atSevere, atWarning
-
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
-
forEnclosingClass
-
forEnclosingClassFull
-
get
-
at
- Specified by:
atin classcom.google.common.flogger.AbstractLogger<HytaleLogger.Api>
-
getName
-
getLevel
-
setLevel
-
getSubLogger
-
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
-