消息日志组件在C# [英] Message Log Component in C#

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

问题描述

我想有一个框,显示按时间顺序消息(最近在底部)的列表喜欢在FTP应用程序和IDE常见。下面是FileZilla的消息日志:

目前,我得到了类似的功能,从一个只读的文本框,但是这是不完美的。

积分为以下内容:

  1. 在上下文菜单中有复制此消息选项
  2. 在过滤的级别
  3. 选项写日志记录文件
解决方案

您可以记录的在事件日志中的。它具有很实用的接口。您也可以使用企业库的,如果你打算切换到数据库,文件或其他记录目的地哪个企业库支持

What I want to have is a box that displays a list of messages in chronological order (most recent at the bottom) like is common in FTP apps and IDEs. Here's the FileZilla message log:

At the moment, I'm getting similar functionality from a read only text box, but this isn't perfect.

Bonus points for the following:

  1. Context menu has the option of "copy this message"
  2. Filtering by "level"
  3. Option to write log to file

解决方案

You could log into Event Log. It has quite usable interface. You can also use Enterprise Library if you plan to switch to database, file or other logging destination which enterprise library supports

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

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