Class LogUtil


  • public class LogUtil
    extends Object
    The LogUtil class provides methods which are used by federation compoment to write logs.
    • Constructor Detail

      • LogUtil

        public LogUtil()
    • Method Detail

      • access

        public static void access​(Level level,
                                  String msgid,
                                  String[] data)
        Logs message to ID-FF access logs.
        Parameters:
        level - the log level , these are based on those defined in java.util.logging.Level, the values for level can be any one of the following :
        • SEVERE (highest value)
        • WARNING
        • INFO
        • CONFIG
        • FINE
        • FINER
        • FINEST (lowest value)
        msgid - the message or a message identifier.
        data - string array of dynamic data to be replaced in the message.
      • access

        public static void access​(Level level,
                                  String msgid,
                                  String[] data,
                                  Object session)
        Logs message to ID-FF access logs.
        Parameters:
        level - the log level , these are based on those defined in java.util.logging.Level, the values for level can be any one of the following :
        • SEVERE (highest value)
        • WARNING
        • INFO
        • CONFIG
        • FINE
        • FINER
        • FINEST (lowest value)
        msgid - the message or a message identifier.
        data - string array of dynamic data to be replaced in the message.
        session - the User's session object
      • error

        public static void error​(Level level,
                                 String msgid,
                                 String[] data)
        Logs error messages to ID-FF error log.
        Parameters:
        level - the log level , these are based on those defined in java.util.logging.Level, the values for level can be any one of the following :
        • SEVERE (highest value)
        • WARNING
        • INFO
        • CONFIG
        • FINE
        • FINER
        • FINEST (lowest value)
        msgid - the message or a message identifier.
        data - string array of dynamic data to be replaced in the message.
      • error

        public static void error​(Level level,
                                 String msgid,
                                 String[] data,
                                 Object session)
        Logs error messages to ID-FF error log.
        Parameters:
        level - the log level , these are based on those defined in java.util.logging.Level, the values for level can be any one of the following :
        • SEVERE (highest value)
        • WARNING
        • INFO
        • CONFIG
        • FINE
        • FINER
        • FINEST (lowest value)
        msgid - the message or a message identifier.
        data - string array of dynamic data to be replaced in the message.
        session - the User's Session object.
      • isLogEnabled

        public boolean isLogEnabled()
        Checks if the logging is enabled.
        Returns:
        true if logging is enabled.
      • isAccessLoggable

        public static boolean isAccessLoggable​(Level level)
        Checks if an access message of the given level would actually be logged by this logger. This check is based on the Loggers effective level.
        Parameters:
        level - a message logging level.
        Returns:
        true if the given message level is currently being logged.
      • isErrorLoggable

        public static boolean isErrorLoggable​(Level level)
        Checks if an error message of the given level would actually be logged by this logger. This check is based on the Loggers effective level.
        Parameters:
        level - a message logging level.
        Returns:
        true if the given message level is currently being logged.