HslMessageItem 类 |
命名空间: HslCommunication.LogNet
HslMessageItem 类型公开以下成员。
| 名称 | 说明 | |
|---|---|---|
| HslMessageItem |
实例化一个默认的对象 Instantiate a default object |
| 名称 | 说明 | |
|---|---|---|
| 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 |
| 名称 | 说明 | |
|---|---|---|
| Equals | Determines whether the specified object is equal to the current object. (继承自 Object。) | |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (继承自 Object。) | |
| GetHashCode | Serves as the default hash function. (继承自 Object。) | |
| GetType | Gets the Type of the current instance. (继承自 Object。) | |
| MemberwiseClone | Creates a shallow copy of the current Object. (继承自 Object。) | |
| ToString | Returns a string that represents the current object. (重写 ObjectToString.) | |
| ToStringWithoutKeyword |
返回表示当前对象的字符串,剔除了关键字 Returns a string representing the current object, excluding keywords |
| 名称 | 说明 | |
|---|---|---|
| ToJsonString |
获取当前对象的JSON格式表示的字符串。 (由 HslExtension 定义。)Gets the string represented by the JSON format of the current object. |