Package csw.logging.client.commons
Class LogAdminUtil
java.lang.Object
csw.logging.client.commons.LogAdminUtil
Helper to get/set the log level of components
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic LogMetadata
getLogMetadata
(Prefix prefix) Fetches the LogMetadata for given componentstatic void
setComponentLogLevel
(Prefix prefix, Level level) Updates the log level of component
-
Constructor Details
-
LogAdminUtil
public LogAdminUtil()
-
-
Method Details
-
getLogMetadata
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
Updates the log level of component- Parameters:
prefix
- represents full name (from prefix) of component whose log level to be changedlevel
- represents log level to set
-