Setting the logging level by using REST Administration APIs
System administrators can set the logging level by using the Eclipse Amlen REST Administration APIs.
Use the Eclipse Amlen REST API POST method.
The following example shows setting the logging level of
imaserver-default.log to
MAX:curl -X POST -H 'Content-Type: application/json' -d '{ "LogLevel": "MAX" }' http://127.0.0.1:9089/ima/v1/configuration/The following example shows setting the logging level of
The
following shows an example response to the POST
method.imaserver-default.log to
NORMAL and imaserver-connection.log to
MAX:curl -X POST -H 'Content-Type: application/json' -d '{ "LogLevel": "NORMAL", "ConnectionLog": "MAX" }' http://127.0.0.1:9089/ima/v1/configuration/
{
"Version": "v1",
"Code": "CWLNA6011",
"Message": "The requested configuration change has completed successfully."
}