POST api/Application/Logging/Log

Request Information

URI Parameters

None.

Body Parameters

LogModel
NameDescriptionTypeAdditional information
Logger

string

None.

Level

string

None.

Message

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Logger": "sample string 1",
  "Level": "sample string 2",
  "Message": "sample string 3"
}

text/html

Sample:
{"Logger":"sample string 1","Level":"sample string 2","Message":"sample string 3"}

application/xml, text/xml

Sample:
<LogModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Gravitate.WebAPI.Areas.Application.Models">
  <Level>sample string 2</Level>
  <Logger>sample string 1</Logger>
  <Message>sample string 3</Message>
</LogModel>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'LogModel'.

Response Information

Resource Description

Object

None.

Response Formats

application/json, text/json, text/html

Sample:
{}

application/xml, text/xml

Sample:
<z:anyType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/" />