ConfigurationConsoleLoggerSettings.TryGetSwitch(String, LogLevel) 메서드

정의

지정된 스위치의 로그 수준을 가져옵니다.

public:
 virtual bool TryGetSwitch(System::String ^ name, [Runtime::InteropServices::Out] Microsoft::Extensions::Logging::LogLevel % level);
public bool TryGetSwitch (string name, out Microsoft.Extensions.Logging.LogLevel level);
abstract member TryGetSwitch : string * LogLevel -> bool
override this.TryGetSwitch : string * LogLevel -> bool
Public Function TryGetSwitch (name As String, ByRef level As LogLevel) As Boolean

매개 변수

name
String

조회할 스위치의 이름입니다.

level
LogLevel

이 메서드가 반환되면 스위치 값(있는 경우)이 포함됩니다. 스위치를 찾을 수 없는 경우 이 매개 변수는 로 None설정됩니다.

반환

true 스위치가 발견되면 이고, 그렇지 않으면 false입니다.

구현

예외

적용 대상