.net - Windows 运行时 : Does it include a logging library?

标签 .net logging windows-8 windows-runtime

System.Diagnostics.Trace , System.Diagnostics.EventLog , 和 System.Console 一切似乎都不可用。 WinRT 是否包含日志记录库?

最佳答案

我唯一能找到的东西(System.Diagnostics.Debug.WriteLine()):

    //
    // Summary:
    //     Writes a message followed by a line terminator to the trace listeners in
    //     the System.Diagnostics.Debug.Listeners collection.
    //
    // Parameters:
    //   message:
    //     A message to write.
    [Conditional("DEBUG")]
    public static void WriteLine(string message);

它写入 Visual Studio 输出窗口的调试输出。

关于.net - Windows 运行时 : Does it include a logging library?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8772522/

相关文章:

Mysql日志触发器

windows-8 - WebView 的自定义用户代理

.net - 我可以使用 ServiceStack 自行托管 Web UI 吗?

asp.net - LabelFor + EditorFor 在同一行?

.net - 如何强制卸载Windows服务

c# - 在 c# 和 c dll 之间使用通用颜色值

python - 跨包模块设置日志记录的有效方法

api - 纱 API : Getting Yarn Aggregated Logs for application by API

windows-8 - Windows 8 上 Internet Explorer 10 全局代理设置的注册表项

javascript - 无法向按钮添加事件