You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

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
LogLevelYesNoEnum0Possible 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.
LoggerNameYesNostringnone128 - Max Length Controls which sub-system will have the default log level overridden.
LogDestinationNoNoint0 Specifies the destination for which this sub-system should be overridden.

Usage Example: (about cURL | requires a session token)

curl --cookie PHPSESSID=cuc2h83fqaispmu6m519sa5642 -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:

<?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>
  • No labels