Ads API .NET library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Google.Api.Ads.Common.Logging.LogEntry Class Reference

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...
 

Detailed Description

Helper class for logging.

Constructor & Destructor Documentation

Google.Api.Ads.Common.Logging.LogEntry.LogEntry ( AppConfig  config,
DateTimeProvider  dateTimeProvider 
)
inline

Initializes a new instance of the LogEntry class.

Parameters
configThe application configuration.
dateTimeProviderThe date and time provider.

Member Function Documentation

void Google.Api.Ads.Common.Logging.LogEntry.Flush ( )
inline

Writes the HTTP logs.

void Google.Api.Ads.Common.Logging.LogEntry.LogRequest ( RequestInfo  requestInfo,
ISet< string >  headersToMask 
)
inline

Logs an HTTP request.

Parameters
requestInfoThe request information.
headersToMaskThe headers to mask.
void Google.Api.Ads.Common.Logging.LogEntry.LogRequest ( RequestInfo  requestInfo,
ISet< string >  headersToMask,
TraceFormatter  formatter 
)
inline

Logs an HTTP request.

Parameters
requestInfoThe request information.
headersToMaskThe headers to mask.
formatterThe TraceFormatter to use when formatting the message.
Returns
The request logs
void Google.Api.Ads.Common.Logging.LogEntry.LogResponse ( ResponseInfo  responseInfo)
inline

Logs an HTTP response.

Parameters
responseInfoThe response information.
void Google.Api.Ads.Common.Logging.LogEntry.LogResponse ( ResponseInfo  responseInfo,
ISet< string >  fieldsToMask,
TraceFormatter  formatter 
)
inline

Logs an HTTP response.

Parameters
responseInfoThe response information.
fieldsToMaskThe list of fields to mask.
formatterThe formatter to be used for formatting the response logs.
void Google.Api.Ads.Common.Logging.LogEntry.LogResponseDetails ( ResponseInfo  responseInfo,
ISet< string >  fieldsToMask,
TraceFormatter  formatter 
)
inline

Logs the details of an HTTP response.

Parameters
responseInfoThe response information.
fieldsToMaskThe list of fields to mask.
formatterThe formatter to be used for formatting the response logs.

Property Documentation

string Google.Api.Ads.Common.Logging.LogEntry.DetailedLog
get

Gets the detailed log.

string Google.Api.Ads.Common.Logging.LogEntry.DetailedRequestLog
getset

Gets or sets the detailed request log.

string Google.Api.Ads.Common.Logging.LogEntry.DetailedResponseLog
getset

Gets or sets the detailed response log.

string Google.Api.Ads.Common.Logging.LogEntry.SummaryLog
get

Gets the summary log.


The documentation for this class was generated from the following file: