HslMessageItem 属性 |
HslMessageItem 类型公开以下成员。
名称 | 说明 | |
---|---|---|
Cancel |
是否取消写入到文件中去,在事件 BeforeSaveToFile 触发的时候捕获即可设置。 Whether to cancel writing to the file, can be set when the event BeforeSaveToFile is triggered. | |
Degree |
消息的等级,包括DEBUG,INFO,WARN,ERROR,FATAL,NONE共计六个等级 Message levels, including DEBUG, INFO, WARN, ERROR, FATAL, NONE total six levels | |
Id |
单个记录信息的标识ID,程序重新运行时清空,代表程序从运行以来的日志计数,不管存储的或是未存储的 The ID of a single record of information. It is cleared when the program is re-run. It represents the log count of the program since it was run, whether stored or unstored. | |
KeyWord |
消息的关键字 Keyword of the message | |
Text |
消息文本,记录日志的时候给定 Message text, given when logging | |
ThreadId |
线程ID,发生异常时的线程号 Thread ID, the thread number when the exception occurred | |
Time |
记录日志的时间,而非存储日志的时间 The time the log was recorded, not the time it was stored |