10 instantiations of LogTag
dotnet-svcutil-lib (10)
Shared\Utilities\LogTag.cs (10)
21
public static LogTag Information { get; } = new
LogTag
("$I!#");
22
public static LogTag Important { get; } = new
LogTag
("$T!#");
23
public static LogTag Warning { get; } = new
LogTag
("$W!#");
24
public static LogTag Error { get; } = new
LogTag
("$E!#");
25
public static LogTag LogMessage { get; } = new
LogTag
("$L!#");
27
public static LogTag NewLine { get; } = new
LogTag
("$N!#");
29
public static LogTag TraceSuccess { get; } = new
LogTag
("$S!#");
30
public static LogTag TraceFailure { get; } = new
LogTag
("$F!#");
31
public static LogTag TraceProperty { get; } = new
LogTag
("$P!#");
32
public static LogTag TraceException { get; } = new
LogTag
("$X!#");
63 references to LogTag
dotnet-svcutil-lib (63)
DebugLogger.cs (18)
14
private void LogMessage(string message,
LogTag
logTag, bool logToUI = false)
22
if (logTag ==
LogTag
.Error)
26
else if (logTag ==
LogTag
.Warning)
32
ToolConsole.WriteLine(message, logToUI ?
LogTag
.Information :
LogTag
.LogMessage);
56
ToolConsole.WriteLine(message, logToUI ?
LogTag
.Information :
LogTag
.LogMessage);
65
return Task.Run(() => LogMessage(message,
LogTag
.LogMessage, logToUI));
70
return Task.Run(() => LogMessage(errorMessage,
LogTag
.Error, logToUI));
75
return Task.Run(() => LogMessage(warningMessage,
LogTag
.Warning, logToUI));
95
LogMessage(data,
LogTag
.LogMessage);
100
LogMessage(data,
LogTag
.LogMessage);
105
LogMessage(data,
LogTag
.LogMessage);
110
LogMessage(data,
LogTag
.LogMessage);
115
LogMessage(data,
LogTag
.Warning);
120
LogMessage(data,
LogTag
.Error);
125
LogMessage(data,
LogTag
.LogMessage);
150
LogMessage(data,
LogTag
.Error);
MarkupTelemetryHelper.cs (5)
106
ToolConsole.WriteLine(propName +
LogTag
.TraceProperty + propValue,
LogTag
.TraceProperty, ToolConsole.Space);
114
ToolConsole.WriteLine(str, (succeess ?
LogTag
.TraceSuccess :
LogTag
.TraceFailure), ToolConsole.Space);
123
ToolConsole.WriteLine(str,
LogTag
.TraceException, ToolConsole.Space);
Shared\Utilities\LogTag.cs (20)
21
public static
LogTag
Information { get; } = new LogTag("$I!#");
22
public static
LogTag
Important { get; } = new LogTag("$T!#");
23
public static
LogTag
Warning { get; } = new LogTag("$W!#");
24
public static
LogTag
Error { get; } = new LogTag("$E!#");
25
public static
LogTag
LogMessage { get; } = new LogTag("$L!#");
27
public static
LogTag
NewLine { get; } = new LogTag("$N!#");
29
public static
LogTag
TraceSuccess { get; } = new LogTag("$S!#");
30
public static
LogTag
TraceFailure { get; } = new LogTag("$F!#");
31
public static
LogTag
TraceProperty { get; } = new LogTag("$P!#");
32
public static
LogTag
TraceException { get; } = new LogTag("$X!#");
37
if (string.IsNullOrEmpty(tag) || tag.Length !=
LogTag
.s_tagLength || !tag.StartsWith(s_tagStart, StringComparison.Ordinal) || !tag.EndsWith(s_tagEnd, StringComparison.Ordinal))
45
public static implicit operator string(
LogTag
tag)
50
public static bool IsTrace(
LogTag
tag)
52
return tag ==
LogTag
.TraceSuccess || tag ==
LogTag
.TraceProperty || tag ==
LogTag
.TraceFailure || tag ==
LogTag
.TraceException || tag ==
LogTag
.LogMessage;
60
if (!string.IsNullOrEmpty(message) && message.Length >=
LogTag
.s_tagLength)
62
tag = message.Substring(0,
LogTag
.s_tagLength);
Tool.cs (1)
252
ToolConsole.WriteLineIf(options.ToolContext != OperationalContext.Infrastructure, filePath,
LogTag
.Important);
ToolConsole.cs (19)
87
WriteLine(errMsg, isTrace ?
LogTag
.LogMessage :
LogTag
.Error);
98
WriteLine(message, isTrace ?
LogTag
.LogMessage :
LogTag
.Warning);
103
WriteLine(str,
LogTag
.Information,
LogTag
.NewLine);
106
internal static void WriteLine(string str,
LogTag
logTag)
108
WriteLine(str, logTag,
LogTag
.NewLine);
113
WriteLineIf(condition, str,
LogTag
.Information);
116
internal static void WriteLineIf(bool condition, string str,
LogTag
logTag)
120
WriteLine(str, logTag,
LogTag
.NewLine);
124
internal static void WriteLine(string str,
LogTag
logTag, string newLineReplacement)
130
if (ToolConsole.Verbosity > Verbosity.Minimal || logTag ==
LogTag
.Error || logTag ==
LogTag
.Important ||
131
(ToolConsole.Verbosity == Verbosity.Minimal && logTag ==
LogTag
.Warning) ||
LogTag
.IsTrace(logTag))
203
ToolConsole.WriteLine(string.Format(SR.LogoFormat, Tool.ToolName, Tool.PackageVersion, SR.Microsoft_Copyright_CommandLine_Logo),
LogTag
.Important);
207
ToolConsole.WriteLine(SR.TelemetryEnabled,
LogTag
.Information);
216
ToolConsole.WriteLine(HelpGenerator.GenerateHelpText(),
LogTag
.Important);