Message Log Component in C#(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.
以下奖励积分:
- 上下文菜单有复制这条消息"的选项
- 按级别"过滤
- 将日志写入文件的选项
推荐答案
你可以登录进入事件日志.它有相当可用的界面.如果您打算切换到数据库,也可以使用 企业库,企业库支持的文件或其他日志记录目的地
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# 中的消息日志组件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:C# 中的消息日志组件


- 在哪里可以找到使用中的C#/XML文档注释的好例子? 2022-01-01
- C#MongoDB使用Builders查找派生对象 2022-09-04
- MoreLinq maxBy vs LINQ max + where 2022-01-01
- WebMatrix WebSecurity PasswordSalt 2022-01-01
- C# 中多线程网络服务器的模式 2022-01-01
- 良好实践:如何重用 .csproj 和 .sln 文件来为 CI 创建 2022-01-01
- 如何用自己压缩一个 IEnumerable 2022-01-01
- 输入按键事件处理程序 2022-01-01
- Web Api 中的 Swagger .netcore 3.1,使用 swagger UI 设置日期时间格式 2022-01-01
- 带有服务/守护程序应用程序的 Microsoft Graph CSharp SDK 和 OneDrive for Business - 配额方面返回 null 2022-01-01