Class Util

java.lang.Object
org.slf4j.helpers.Util

public final class Util extends Object
An internal utility class.
  • Field Details

    • SECURITY_MANAGER

      private static Util.ClassContextSecurityManager SECURITY_MANAGER
    • SECURITY_MANAGER_CREATION_ALREADY_ATTEMPTED

      private static boolean SECURITY_MANAGER_CREATION_ALREADY_ATTEMPTED
  • Constructor Details

    • Util

      private Util()
  • Method Details

    • safeGetSystemProperty

      public static String safeGetSystemProperty(String key)
    • safeGetBooleanSystemProperty

      public static boolean safeGetBooleanSystemProperty(String key)
    • getSecurityManager

      private static Util.ClassContextSecurityManager getSecurityManager()
    • safeCreateSecurityManager

      private static Util.ClassContextSecurityManager safeCreateSecurityManager()
    • getCallingClass

      public static Class<?> getCallingClass()
      Returns the name of the class which called the invoking method.
      Returns:
      the name of the class which called the invoking method.
    • report

      public static final void report(String msg, Throwable t)
    • report

      public static final void report(String msg)