LocalFileLogger.Log(LocalLoggerSeverity, String, String) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
记录具有严重性的当前字符串
public:
virtual void Log(Microsoft::VisualStudio::LocalLogger::LocalLoggerSeverity severity, System::String ^ componentId, System::String ^ text);
public void Log (Microsoft.VisualStudio.LocalLogger.LocalLoggerSeverity severity, string componentId, string text);
abstract member Log : Microsoft.VisualStudio.LocalLogger.LocalLoggerSeverity * string * string -> unit
override this.Log : Microsoft.VisualStudio.LocalLogger.LocalLoggerSeverity * string * string -> unit
Public Sub Log (severity As LocalLoggerSeverity, componentId As String, text As String)
参数
- severity
- LocalLoggerSeverity
严重性
- componentId
- String
组件 id,因此以后可以轻松地进行筛选,可能为 null 或空
- text
- String
必需的自由格式记录器文本