Ads API .NET library
|
Helper class for logging. More...
Public Member Functions | |
LogEntry (AppConfig config, DateTimeProvider dateTimeProvider) | |
Initializes a new instance of the LogEntry class. More... | |
void | LogRequest (RequestInfo requestInfo, ISet< string > headersToMask) |
Logs an HTTP request. More... | |
void | LogRequest (RequestInfo requestInfo, ISet< string > headersToMask, TraceFormatter formatter) |
Logs an HTTP request. More... | |
void | LogResponse (ResponseInfo responseInfo) |
Logs an HTTP response. More... | |
void | LogResponse (ResponseInfo responseInfo, ISet< string > fieldsToMask, TraceFormatter formatter) |
Logs an HTTP response. More... | |
void | LogResponseDetails (ResponseInfo responseInfo, ISet< string > fieldsToMask, TraceFormatter formatter) |
Logs the details of an HTTP response. More... | |
void | Flush () |
Writes the HTTP logs. More... | |
Properties | |
string | DetailedRequestLog [get, set] |
Gets or sets the detailed request log. More... | |
string | DetailedResponseLog [get, set] |
Gets or sets the detailed response log. More... | |
string | DetailedLog [get] |
Gets the detailed log. More... | |
string | SummaryLog [get] |
Gets the summary log. More... | |
Helper class for logging.
|
inline |
Initializes a new instance of the LogEntry class.
config | The application configuration. |
dateTimeProvider | The date and time provider. |
|
inline |
Writes the HTTP logs.
|
inline |
Logs an HTTP request.
requestInfo | The request information. |
headersToMask | The headers to mask. |
|
inline |
Logs an HTTP request.
requestInfo | The request information. |
headersToMask | The headers to mask. |
formatter | The TraceFormatter to use when formatting the message. |
|
inline |
Logs an HTTP response.
responseInfo | The response information. |
|
inline |
Logs an HTTP response.
responseInfo | The response information. |
fieldsToMask | The list of fields to mask. |
formatter | The formatter to be used for formatting the response logs. |
|
inline |
Logs the details of an HTTP response.
responseInfo | The response information. |
fieldsToMask | The list of fields to mask. |
formatter | The formatter to be used for formatting the response logs. |
|
get |
Gets the detailed log.
|
getset |
Gets or sets the detailed request log.
|
getset |
Gets or sets the detailed response log.
|
get |
Gets the summary log.