POST api/Admin/ExceptionLog
Creates a new exception log.
Request Information
URI Parameters
None.
Body Parameters
The exception log to be created.
ESignSystems.SmartSAFE.Models.Logging.LogModelName | Description | Type | Additional information |
---|---|---|---|
Exception |
Gets or sets the exception associated to the log. |
System.Exception |
None. |
MethodName |
Gets or sets the name of the method associated to the log. |
string |
None. |
Message |
Gets or sets the message associated to the log. |
string |
None. |
ApplicationName |
Gets or sets the name of the application associated to the log. |
string |
None. |
UserName |
Gets or sets the name of the user associated to the log. |
string |
None. |
RequestData |
Gets or sets the request data for the log. |
string |
None. |
Request Formats
application/json, text/json
Sample:
{ "Exception": { "ClassName": "System.Exception", "Message": null, "Data": null, "InnerException": null, "HelpURL": "sample string 1", "StackTraceString": null, "RemoteStackTraceString": null, "RemoteStackIndex": 0, "ExceptionMethod": null, "HResult": 3, "Source": "sample string 2", "WatsonBuckets": null }, "MethodName": "sample string 1", "Message": "sample string 2", "ApplicationName": "sample string 3", "UserName": "sample string 4", "RequestData": "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/ESignSystems.SmartSAFE.Models.Logging"> <ApplicationName>sample string 3</ApplicationName> <Exception xmlns:d2p1="http://schemas.datacontract.org/2004/07/System"> <ClassName xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:string" xmlns="">System.Exception</ClassName> <Message i:nil="true" xmlns="" /> <Data i:nil="true" xmlns="" /> <InnerException i:nil="true" xmlns="" /> <HelpURL xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:string" xmlns="">sample string 1</HelpURL> <StackTraceString i:nil="true" xmlns="" /> <RemoteStackTraceString i:nil="true" xmlns="" /> <RemoteStackIndex xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:int" xmlns="">0</RemoteStackIndex> <ExceptionMethod i:nil="true" xmlns="" /> <HResult xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:int" xmlns="">3</HResult> <Source xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:string" xmlns="">sample string 2</Source> <WatsonBuckets i:nil="true" xmlns="" /> </Exception> <Message>sample string 2</Message> <MethodName>sample string 1</MethodName> <RequestData>sample string 5</RequestData> <UserName>sample string 4</UserName> </LogModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
System.Web.Http.IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.