Function Microsoft::XboxStudios::Logging::IsLogSevere

Function Documentation

static bool Microsoft::XboxStudios::Logging::IsLogSevere(LogSeverity severity, LogSeverity minSeverity)

Checks if a log severity is severe enough given the minimum severity allowed. Examples: If min severity is Verbose (2), then this method returns true for severity Error, Warning and Verbose. If min severity is Warning (1), then this method returns true for severity Error and Warning and false for Verbose. If min severity is Error (0), then this method returns true for severity Error only.

Parameters
  • severity – The severity to check for.

  • minSeverity – The minimum severity level allowed to be considered severe.

Returns

True if the log is severe, false otherwise.