作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

›› 2004, Vol. 30 ›› Issue (S1): 586-.

• 论文 • 上一篇    下一篇

在.NET环境中开发日志功能的研究

孙锴,夏雨人   

  1. 上海交通大学计算机科学与工程系,上海交通大学计算机科学与工程系 上海 200030
  • 发布日期:2004-12-29

Research on Developing Log System in .NET

SUN Kai,XIA Yuren   

  1. (Department of Computer Science and Engineering,Shanghai Jiaotong University,Shanghai 200030)
  • Published:2004-12-29

摘要: log4net是一个用C#语言开发的,可以用于.NET开发语言的,开放源码的项目。它的前身是著名的为Java包而开发的一个日志工具 log4j。log4net允许开发者以丰富的格式来控制日志信息的输出;它通过读取可在外部编辑的配置文件而达到运行时灵活的设置。同时, log4net具有良好的结构,易于学习。该文介绍了如何使用log4net建立自己的日志系统。

关键词: 日志, log4net, log4j, .NET

Abstract: log4net is an open source project developed with C#. It can be used by any .NET language. It comes from a famous log tool for javalog4j. It allows the developer to control the logging output with rich format. It is fully configurable at runtime using external configuration files. At the same time, log4net framework has a good structure and is ease to leam. This article introduces how to make your own log with log4net.

中图分类号: