service loglevel set
The service loglevel set command specifies the level of detail included in the service log.
You can specify the default logging level as well as logging levels for each service on your system. When you change logging levels the change will not be reflected in the log entries made before the change.
Usage
service loglevel set --s ServiceName --l LogLevelRequired | Argument | Description |
---|---|---|
Yes | --s ServiceName | Specifies the name of the service whose logging level you want to set. |
Yes | --l LogLevel | Specifies the logging level for the service, where LogLevel is
one of the following:
Each logging level includes the ones above it on the list. In other words, if Warning is selected as the logging level, errors and fatal errors will also be logged. If Info is selected, informational messages, warnings, errors, and fatal errors will be logged. Note: Selecting the most intensive logging level can affect system
performance. Therefore, you should select the least intensive setting that
meets your particular logging requirements. |
Example
This example sets the logging level for ValidateAddress to Warn:
service loglevel set --s ValidateAddress --l Warn