LogNetBaseHslMessageFormat 方法 |
根据需要存储的日志消息,获取实际存储的字符串,重写本方法就可以自定义输出内容
According to the log message that needs to be stored, get the actual stored string, and the rewrite method can customize the output content
命名空间:
HslCommunication.LogNet
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 protected virtual string HslMessageFormat(
HslMessageItem hslMessage,
bool writeFile
)
Protected Overridable Function HslMessageFormat (
hslMessage As HslMessageItem,
writeFile As Boolean
) As String
protected:
virtual String^ HslMessageFormat(
HslMessageItem^ hslMessage,
bool writeFile
)
abstract HslMessageFormat :
hslMessage : HslMessageItem *
writeFile : bool -> string
override HslMessageFormat :
hslMessage : HslMessageItem *
writeFile : bool -> string
参数
- hslMessage
- 类型:HslCommunication.LogNetHslMessageItem
等待存储或是输出的日志对象 - writeFile
- 类型:SystemBoolean
是否输出到文件里
返回值
类型:
String最终等待存储的字符串内容
参见