Package com.yahoo.log
Class VespaLevelControllerRepo
- java.lang.Object
-
- com.yahoo.log.VespaLevelControllerRepo
-
- All Implemented Interfaces:
LevelControllerRepo
public class VespaLevelControllerRepo extends java.lang.Object implements LevelControllerRepo
- Since:
- 5.1
- Author:
- Ulf Lilleengen
-
-
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)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Close down the level controller repository.LevelController
getLevelControl(java.lang.String suffix)
LevelController
getLevelController(java.lang.String component)
Return the level controller for a given component.
-
-
-
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
-
-
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 interfaceLevelControllerRepo
- Parameters:
component
- The component name string.- Returns:
- The LevelController corresponding to that component. Return null if not found.
-
close
public void close()
Description copied from interface:LevelControllerRepo
Close down the level controller repository. Cleanup should be done here.- Specified by:
close
in interfaceLevelControllerRepo
-
-