Provides utility methods to write to Trace stream.
More...
Provides utility methods to write to Trace stream.
static void Google.Api.Ads.Common.Util.TraceUtilities.Configure |
( |
string |
source, |
|
|
System.Diagnostics.TraceListener |
traceListener, |
|
|
SourceLevels |
levels |
|
) |
| |
|
inlinestatic |
Configures the specified trace source.
- Parameters
-
source | The trace source. |
traceListener | The trace listener. |
levels | The source levels. |
static void Google.Api.Ads.Common.Util.TraceUtilities.Configure |
( |
string |
source, |
|
|
TextWriter |
textWriter, |
|
|
SourceLevels |
levels |
|
) |
| |
|
inlinestatic |
Configures the specified trace source.
- Parameters
-
source | The trace source. |
textWriter | The text writer. |
levels | The source levels. |
static void Google.Api.Ads.Common.Util.TraceUtilities.Configure |
( |
string |
source, |
|
|
string |
filePath, |
|
|
SourceLevels |
levels |
|
) |
| |
|
inlinestatic |
Configures the specified trace source to write to a file.
- Parameters
-
source | The trace source. |
filePath | The file path. |
levels | The trace levels. |
static TraceSource Google.Api.Ads.Common.Util.TraceUtilities.GetSource |
( |
string |
sourceName | ) |
|
|
inlinestatic |
Gets a Trace source by name.
- Parameters
-
sourceName | Name of the Trace source. |
- Returns
- The trace source.
- Exceptions
-
ArgumentException | Thrown if the trace source is unknown. |
static void Google.Api.Ads.Common.Util.TraceUtilities.WriteDeprecationWarnings |
( |
string |
message | ) |
|
|
inlinestatic |
Writes the deprecation warnings.
- Parameters
-
The trace levels may be controlled from App.config by setting the level for AdsClientLibs.DeprecationMessages trace switch.
static void Google.Api.Ads.Common.Util.TraceUtilities.WriteDetailedRequestLogs |
( |
string |
message, |
|
|
Boolean |
isError |
|
) |
| |
|
inlinestatic |
Writes detailed HTTP request logs.
- Parameters
-
message | The HTTP request logs. |
isError | Indicates whether or not these are error logs. |
The trace levels may be controlled from App.config by setting the level for AdsClientLibs.DetailedRequestLogs trace switch.
static void Google.Api.Ads.Common.Util.TraceUtilities.WriteGeneralErrors |
( |
string |
message | ) |
|
|
inlinestatic |
Writes the general errors.
- Parameters
-
The trace levels may be controlled from App.config by setting the level for AdsClientLibs.GeneralWarningMessages trace switch.
static void Google.Api.Ads.Common.Util.TraceUtilities.WriteGeneralWarnings |
( |
string |
message | ) |
|
|
inlinestatic |
Writes the general warnings.
- Parameters
-
The trace levels may be controlled from App.config by setting the level for AdsClientLibs.GeneralWarningMessages trace switch.
static void Google.Api.Ads.Common.Util.TraceUtilities.WriteSummaryRequestLogs |
( |
string |
message, |
|
|
Boolean |
isError |
|
) |
| |
|
inlinestatic |
Writes the summarized HTTP request logs.
- Parameters
-
message | The summarized HTTP request logs. |
isError | Indicates whether or not these are error logs. |
The trace levels may be controlled from App.config by setting the level for AdsClientLibs.SummaryRequestLogs trace switch.
const string Google.Api.Ads.Common.Util.TraceUtilities.DEPRECATION_MESSAGES_SOURCE = "AdsClientLibs.DeprecationMessages" |
Trace source for deprecation messages.
const string Google.Api.Ads.Common.Util.TraceUtilities.DETAILED_REQUEST_LOGS_SOURCE = "AdsClientLibs.DetailedRequestLogs" |
Trace source for detailed HTTP request logs.
const string Google.Api.Ads.Common.Util.TraceUtilities.GENERAL_WARNING_MESSAGES_SOURCE |
Initial value:=
"AdsClientLibs.GeneralWarningMessages"
Trace source for general warning messages.
const string Google.Api.Ads.Common.Util.TraceUtilities.SUMMARY_REQUEST_LOGS_SOURCE = "AdsClientLibs.SummaryRequestLogs" |
Trace source for summarized HTTP request logs.
The documentation for this class was generated from the following file: