开发者

Ideas or existing tools to differentiate color of log4net calls and other actions in methods?

Logging doesn't add much readability or use to method code, if I could color code all logging calls like

log.ErrorFormat("Expected 10, got:{0}", count); 

or

log.Info("began parsing");

into grayed strings for example, method readability would instantly rise I think (I am working in Visual开发者_运维百科 Stuido 2010).

Is there any existing way or project that can do that? If not how would one implement that the easiest way. Im thinking there probably might be some resharper plugin that does that?

if someone can find a better title for this question please feel free to edit


Visual Studio allows custom Syntax Highlighting.

http://msdn.microsoft.com/en-us/library/bb165041%28VS.80%29.aspx

This should allow you to highlight any line that has log.Info for example.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜