文件记录在C# [英] File logger in C#

查看:104
本文介绍了文件记录在C#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要寻找一个.NET类来处理记录各种信息保存到文件。记录器应该具有时间戳,类别的记录的数据(能够notificiation和错误之间进行区分),严重性级别的错误,以便能够拆分该日志文件它超过一定大小后

I am looking for a .net class to deal with logging various information to a file. The logger should have timestamps, categories for the logged data (to be able to differentiate between notificiation and errors), severity levels for errors, to be able to split the log file after it exceeds a certain size.

推荐答案

企业库的日志记录应用程序块。

Enterprise Library Logging Application Block.

这篇关于文件记录在C#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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