Class LogManagerUtil


  • public class LogManagerUtil
    extends Object
    This class is a work around for situations where our log manager conflicts with an existing log manager in the container.
    • Constructor Detail

      • LogManagerUtil

        public LogManagerUtil()
    • Method Detail

      • getLogManager

        public static LogManager getLogManager()
        Returns a local LogManager object if LOG_COMPATMODE environment variable is set to "Off". Otherwise returns the global LogManager in the JVM.
        Returns:
        LogManager object.
      • isAMLoggingMode

        public static boolean isAMLoggingMode()
        Returns whether should use AMLog mode
      • setupEnv

        public static void setupEnv()
        Sets up the log configuration reader class or file in the environment, so that our LogManager's custom configuration will be read.
      • resetEnv

        public static void resetEnv()
        Resets the environment to the default one.
      • getLoggingSSOToken

        protected static SSOToken getLoggingSSOToken()
        get a privileged SSOToken from the TokenManager
      • logEndRecords

        public static void logEndRecords()
        Log a LogRecord indicating the end of logging to all opened files