点击或拖拽改变大小

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
Top
参见