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# 中的消息日志组件


基础教程推荐
- 将数据集转换为列表 2022-01-01
- 从 C# 控制相机设备 2022-01-01
- 更新 Visual Studio 中的 DataSet 结构以匹配新的 SQL 数据库结构 2022-01-01
- 获取C#保存对话框的文件路径 2022-01-01
- C# 9 新特性——record的相关总结 2023-04-03
- SonarQube C# 分析失败“不是指针的有效行偏移" 2022-01-01
- 在 VB6 或经典 ASP 中使用 .NET 2022-01-01
- Mono https webrequest 失败并显示“身份验证或解密失败" 2022-01-01
- 如果条件可以为空 2022-01-01
- 重新排序 WPF TabControl 中的选项卡 2022-01-01