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

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

问题描述

我想要的是一个按时间顺序显示消息列表的框(最近在底部),这在 FTP 应用程序和 IDE 中很常见.这是 FileZilla 消息日志:

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:

FileZilla 中的消息日志示例 http://img571.imageshack.us/img571/9247/messageloginfilezilla.png

目前,我从只读文本框中获得了类似的功能,但这并不完美.

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

以下奖励积分:

  1. 上下文菜单有复制这条消息"的选项
  2. 按级别"过滤
  3. 将日志写入文件的选项

推荐答案

你可以登录进入事件日志.它有相当可用的界面.如果您打算切换到数据库,也可以使用 企业库,企业库支持的文件或其他日志记录目的地

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天全站免登陆