POST api/LOG/BusinessLog/Add

写入一个业务日志。 这个调用不需要进行签权。

Request Information

URI Parameters

None.

Body Parameters

日志内容。

BusinessLogParm
NameDescriptionTypeAdditional information
eventtype

日志类型,1消息,2警告,3错误。

string

Required

Max length: 1

machinename

写入日志的主机名。

string

Required

Max length: 32

content

内容。

string

Required

Max length: 50

Request Formats

application/json, text/json

Sample:
{
  "eventtype": "sample string 1",
  "machinename": "sample string 2",
  "content": "sample string 3"
}

application/xml, text/xml

Sample:
<BusinessLogParm xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer.Tour.V5.Parm">
  <content>sample string 3</content>
  <eventtype>sample string 1</eventtype>
  <machinename>sample string 2</machinename>
</BusinessLogParm>

application/x-www-form-urlencoded

Sample:

Sample not available.

application/bson

Sample:
Binary JSON content. See http://bsonspec.org for details.

Response Information

Resource Description

写入一个业务日志。 这个调用不需要进行签权。

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.

application/bson

Sample:
Binary JSON content. See http://bsonspec.org for details.