REST API Method: PUT /rest/logger/{identifier}
Creates a Subsystem Logger given a specific ID.
URL:
https://134.56.227.163/rest/logger/{identifier}
HTTP Method
PUT
Requires Authentication:
true
Parameters
Parameter Name | Required | Service Affecting | Data Type | Default Value | Possible Values | Description |
---|
LogLevel | Yes | No | Enum | 0 | Possible values: - 0 - llDefault
- 1 - llTrace
- 2 - llDebug
- 3 - llInfo
- 4 - llWarn
- 5 - llError
- 6 - llFatal
- 7 - llOff
| Specifies the new severity level to use for this sub-system. |
---|
LoggerName | Yes | No | string | none | 128 - Max Length | Controls which sub-system will have the default log level overridden. |
---|
LogDestination | No | No | int | 0 | | Specifies the destination for which this sub-system should be overridden. |
---|
Code Block |
---|
|
curl --cookie PHPSESSID=fsqgefadjojefv6lmdtij6lh44cuc2h83fqaispmu6m519sa5642 -s -k -i https://134.56.72.218/rest/logger/1 -X PUT --data "ConfigIEState=1&LogLevel=0&LogDestination=0&LoggerName=com.sonus.sbc.ads"
|
Response:
Code Block |
---|
|
<?xml version="1.0"?>
<root>
<status>
<http_code>200</http_code>
</status>
<logger id="1" href="https://134.56.72.218/rest/logger/1">
<LogDestination>0</LogDestination>
<LogLevel>0</LogLevel>
<LoggerName>com.sonus.sbc.ads</LoggerName>
</logger>
</root>
|