POST api/log/add
日志添加
Request Information
URI Parameters
None.
Body Parameters
Collection of AppLogDetail| Name | Description | Type | Additional information |
|---|---|---|---|
| LogType | LogType |
None. |
|
| Msg | string |
None. |
Request Formats
application/json, text/json
Sample:
[
{
"LogType": 0,
"Msg": "sample string 1"
},
{
"LogType": 0,
"Msg": "sample string 1"
}
]
application/xml, text/xml
Sample:
<ArrayOfAppLogDetail xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Infrastructure.Exceptions">
<AppLogDetail>
<LogType>Debug</LogType>
<Msg>sample string 1</Msg>
</AppLogDetail>
<AppLogDetail>
<LogType>Debug</LogType>
<Msg>sample string 1</Msg>
</AppLogDetail>
</ArrayOfAppLogDetail>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ResponseBase| Name | Description | Type | Additional information |
|---|---|---|---|
| errcode |
错误码,默认为成功:SUCCESS |
string |
None. |
| errmsg |
错误信息,默认为:成功 |
string |
None. |
Response Formats
application/json, text/json
Sample:
{
"errcode": "sample string 1",
"errmsg": "sample string 2"
}
application/xml, text/xml
Sample:
<ResponseBase xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Infrastructure.WebApi"> <errcode>sample string 1</errcode> <errmsg>sample string 2</errmsg> </ResponseBase>