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# 中的消息日志组件
基础教程推荐
- 当值可以是对象或空数组时反序列化 JSON 2022-01-01
- 如果有人提交恶意软件Nuget包怎么办? 2022-01-01
- 我应该在后面的代码中直接使用 Linq To SQL 还是使 2022-01-01
- 禁止输入少量字符,例如'<'、'&a 2022-01-01
- .NET SerialPort DataReceived 事件未触发 2022-01-01
- Azure Functions:CosmosDBTrigger 未在 Visual Studio 中触发 2022-01-01
- WPF 模态进度窗口 2022-01-01
- Moq It.Is<>不匹配 2022-01-01
- 如何使用 .Net 检查 Active Directory 服务器是否已启动并正在运行? 2022-01-01
- C# 从 List<List<int>> 中删除重 2022-01-01
