mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-02-16 10:58:30 -05:00
Fix autoflush option not being used (#1470)
* Fix autoflush option not being used * Remove extra comment
This commit is contained in:
@@ -110,6 +110,9 @@ namespace Microsoft.SqlTools.Utility
|
||||
/// <param name="traceSource">
|
||||
/// Optional. Specifies the tracesource name.
|
||||
/// </param>
|
||||
/// <param name="autoFlush">
|
||||
/// Optional. Specifies whether the log is flushed after every message
|
||||
/// </param>
|
||||
public static void Initialize(
|
||||
SourceLevels tracingLevel = defaultTracingLevel,
|
||||
string logFilePath = null,
|
||||
@@ -140,13 +143,17 @@ namespace Microsoft.SqlTools.Utility
|
||||
/// <param name="traceSource">
|
||||
/// Optional. Specifies the tracesource name.
|
||||
/// </param>
|
||||
public static void Initialize(string tracingLevel, string logFilePath = null, string traceSource = defaultTraceSource)
|
||||
/// <param name="autoFlush">
|
||||
/// Optional. Specifies whether the log is flushed after every message
|
||||
/// </param>
|
||||
public static void Initialize(string tracingLevel, string logFilePath = null, string traceSource = defaultTraceSource, bool autoFlush = false)
|
||||
{
|
||||
Initialize(Enum.TryParse<SourceLevels>(tracingLevel, out SourceLevels sourceTracingLevel)
|
||||
? sourceTracingLevel
|
||||
: defaultTracingLevel
|
||||
, logFilePath
|
||||
, traceSource);
|
||||
, traceSource
|
||||
, autoFlush);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user