Package com.sun.identity.log
Class LogManagerUtil
- java.lang.Object
-
- com.sun.identity.log.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 Summary
Constructors Constructor Description LogManagerUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description protected static SSOTokengetLoggingSSOToken()get a privileged SSOToken from the TokenManagerstatic LogManagergetLogManager()Returns a local LogManager object if LOG_COMPATMODE environment variable is set to "Off".static booleanisAMLoggingMode()Returns whether should use AMLog modestatic voidlogEndRecords()Log a LogRecord indicating the end of logging to all opened filesstatic voidresetEnv()Resets the environment to the default one.static voidsetupEnv()Sets up the log configuration reader class or file in the environment, so that our LogManager's custom configuration will be read.
-
-
-
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
-
-