我们如何在.net项目中使用记录器 [英] How will we use loggers in the .net project

查看:62
本文介绍了我们如何在.net项目中使用记录器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在.net中使用记录器。

给我一个例子。

解决方案

你可以在这里查看一个例子:< br $> b $ b

http://www.c-sharpcorner.com/UploadFile/84c85b/logging-application-block-enterprise-library-5-0-with-C-Sharp/ [< a href =http://www.c-sharpcorner.com/UploadFile/84c85b/logging-application-block-enterprise-library-5-0-with-C-Sharp/target =_ blanktitle =New窗口> ^ ]



登录事件查看器和文本文件的另一个示例示例如下:



C#中的构造函数依赖注入模式实现 [ ^ ]

how loggers are used in .net.
give me one example.

解决方案

You can check out an example here :

http://www.c-sharpcorner.com/UploadFile/84c85b/logging-application-block-enterprise-library-5-0-with-C-Sharp/[^]

Another sample example for Logging in Event Viewer and text file is here:

Constructor Dependency Injection Pattern Implementation in C#[^]


这篇关于我们如何在.net项目中使用记录器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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