Package com.yahoo.log

Class VespaLevelControllerRepo

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int controlFileHeaderLength
      length of fixed header content of a control file, constant:
      static int numLevels
      number of distinctly controlled levels (in logctl files), must be compatible with C++ Vespa logging
    • Constructor Summary

      Constructors 
      Constructor Description
      VespaLevelControllerRepo​(java.lang.String logCtlFn, java.lang.String logLevel, java.lang.String applicationPrefix)  
    • Field Detail

      • controlFileHeaderLength

        public static final int controlFileHeaderLength
        length of fixed header content of a control file, constant:
      • numLevels

        public static final int numLevels
        number of distinctly controlled levels (in logctl files), must be compatible with C++ Vespa logging
        See Also:
        Constant Field Values
    • Constructor Detail

      • VespaLevelControllerRepo

        public VespaLevelControllerRepo​(java.lang.String logCtlFn,
                                        java.lang.String logLevel,
                                        java.lang.String applicationPrefix)
    • Method Detail

      • getLevelControl

        public LevelController getLevelControl​(java.lang.String suffix)
      • getLevelController

        public LevelController getLevelController​(java.lang.String component)
        Description copied from interface: LevelControllerRepo
        Return the level controller for a given component.
        Specified by:
        getLevelController in interface LevelControllerRepo
        Parameters:
        component - The component name string.
        Returns:
        The LevelController corresponding to that component. Return null if not found.