Browse Source

[Modify] Specify not to output logs

pull/703/merge
sta 3 years ago
parent
commit
ebbc55c609
  1. 6
      websocket-sharp/LogLevel.cs
  2. 3
      websocket-sharp/Logger.cs

6
websocket-sharp/LogLevel.cs

@ -58,6 +58,10 @@ namespace WebSocketSharp
/// <summary>
/// Specifies the top logging level.
/// </summary>
Fatal
Fatal,
/// <summary>
/// Specifies not to output logs.
/// </summary>
None
}
}

3
websocket-sharp/Logger.cs

@ -278,6 +278,9 @@ namespace WebSocketSharp
/// </param>
public void Fatal (string message)
{
if (_level > LogLevel.Fatal)
return;
output (message, LogLevel.Fatal);
}

Loading…
Cancel
Save