Table Of Contents
LogApp Service
Information About LogApp Service
getDefaultLogLevel
getLogLevel
log
modifyDefaultLogLevel
modifyLogLevel
LogApp Service
This chapter describes the DCNM web services' API methods for the LogApp service.
Information About LogApp Service
This chapter defines the logging services exposed by the DCNM server.
getDefaultLogLevel
Returns the default log level configured in DCNM server.
Return Value
The default logging level
getLogLevel
Returns the log level of the given comment.
If the returned LogLevel is not null, it means that user has explicitly set the returned log level to the given component. If the returned level is null, the user has not set any log level for this component explicitly and the default log level (returned by getDefaultLogLevel(OpContext)) has to be used for this component.
Parameters
component—component whose log level needs to be returned
Return Value
The log level of the given component
log
The given message is loged under Info
Parameters
opContext—Operational context
msg—Message string
Return Value
void
modifyDefaultLogLevel
Sets default logging level to the given feature/service component.
If the component given is null, the default level will be set for all the DCNM feature components and services.
Parameters
defaultLevel—logging level to be set as default.
Return Value
void
modifyLogLevel
The given component's logging level will be changed to the given logging level.
If the given component is null, the given log level is set to all features whereas if given log level is null, then the given component will be set with default level.
Parameters
component—component whose log level is to be changed
logLevel—new log level need to be set to given component
Return Value
void