使用跟踪和TraceSource的区别 [英] Difference between using Trace and TraceSource

查看:269
本文介绍了使用跟踪和TraceSource的区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都知道System.Diagnostic.Trace和System.Diagnostic.TraceSource?

Anyone knows the difference between System.Diagnostic.Trace and System.Diagnostic.TraceSource?

我一直在使用跟踪我的大多数项目,我只是碰巧发现了约TraceSource的一天。他们似乎提供类似的API,比另一种更好呢?

I've been using Trace for most of my projects and I just happen to found out about TraceSource the other day. They seems to offer similar API, is one better than the other?

推荐答案

我觉得TraceSource是较新的版本(因为.NET 2)和Trace是旧版本,更多信息,请访问:

I think TraceSource is the newer version (since .NET 2) and Trace is the older version, more info is available here:

<一个href="http://social.msdn.microsoft.com/Forums/en-US/netfxbcl/thread/3b05b16e-a566-4909-8e37-f3d8999d5977">Clarification在TraceSource /跟踪

这篇关于使用跟踪和TraceSource的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆