消息日志组件在C#组件、消息、日志

2023-09-04 23:20:45 作者:别念旧

我想有一个框,显示按时间顺序消息(最近在底部)的列表喜欢在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:

php kafka 日志系统,日志组件Sentry日志收集以及Kafka消息队列的使用

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

Bonus points for the following:

Context menu has the option of "copy this message" Filtering by "level" 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