POST api/log/LogSave
Request Information
URI Parameters
None.
Body Parameters
LogModelName | Description | Type | Additional information |
---|---|---|---|
myClass | string |
None. |
|
callingMethod | string |
None. |
|
myMessage | string |
None. |
|
mySeverity | string |
None. |
|
formatArgs | Collection of Object |
None. |
|
stackTrace | string |
None. |
Request Formats
application/json, text/json
Sample:
{ "myClass": "sample string 1", "callingMethod": "sample string 2", "myMessage": "sample string 3", "mySeverity": "sample string 4", "formatArgs": [ {}, {} ], "stackTrace": "sample string 5" }
application/xml, text/xml
Sample:
<LogModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NutriMost.Models"> <callingMethod>sample string 2</callingMethod> <formatArgs xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:anyType /> <d2p1:anyType /> </formatArgs> <myClass>sample string 1</myClass> <myMessage>sample string 3</myMessage> <mySeverity>sample string 4</mySeverity> <stackTrace>sample string 5</stackTrace> </LogModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
booleanResponse Formats
application/json, text/json
Sample:
true
application/xml, text/xml
Sample:
<boolean xmlns="http://schemas.microsoft.com/2003/10/Serialization/">true</boolean>