Class LogAdminUtil


  • public class LogAdminUtil
    extends java.lang.Object
    Helper to get/set the log level of components
    • Constructor Detail

      • LogAdminUtil

        public LogAdminUtil()
    • Method Detail

      • getLogMetadata

        public static LogMetadata getLogMetadata​(Prefix prefix)
        Fetches the LogMetadata for given component

        Parameters:
        prefix - represents full name (from prefix) of component whose LogMetadata needs to be fetched
        Returns:
        LogMetaData of the given component
      • setComponentLogLevel

        public static void setComponentLogLevel​(Prefix prefix,
                                                Level level)
        Updates the log level of component

        Parameters:
        prefix - represents full name (from prefix) of component whose log level to be changed
        level - represents log level to set