点击或拖拽改变大小

LogNetDateTime 方法

LogNetDateTime 类型公开以下成员。

方法
  名称说明
公共方法Dispose (继承自 LogNetBase。)
受保护的方法Dispose(Boolean)
释放资源
(继承自 LogNetBase。)
公共方法Equals (继承自 Object。)
公共方法FiltrateKeyword
过滤掉指定的关键字的日志,该信息不存储,但仍然触发BeforeSaveToFile事件
Filter out the logs of the specified keywords, the information is not stored, but the BeforeSaveToFile event is still triggered
(继承自 LogNetBase。)
受保护的方法Finalize (继承自 Object。)
公共方法GetExistLogFileNames
返回所有的日志文件名称,返回一个列表
Returns all log file names, returns a list
(继承自 LogPathBase。)
受保护的方法GetFileSaveName (重写 LogNetBaseGetFileSaveName.)
公共方法GetHashCode (继承自 Object。)
公共方法GetType (继承自 Object。)
受保护的方法MemberwiseClone (继承自 Object。)
受保护的方法OnWriteCompleted
当写入文件完成的时候触发,这时候已经释放了文件的句柄了。
Triggered when writing to the file is complete, and the file handle has been released.
(继承自 LogPathBase。)
公共方法RecordMessage
通过指定消息等级,关键字,日志信息进行消息记录
Record messages by specifying message level, keywords, and log information
(继承自 LogNetBase。)
公共方法RemoveFiltrate
移除过滤的关键字存储
Remove filtered keyword storage
(继承自 LogNetBase。)
公共方法SetMessageDegree
设置日志的存储等级,高于该等级的才会被存储
Set the storage level of the logs. Only the logs above this level will be stored.
(继承自 LogNetBase。)
公共方法ToString (重写 LogPathBaseToString.)
公共方法WriteAnyString
写入任意字符串
Write arbitrary string
(继承自 LogNetBase。)
公共方法WriteDebug(String)
写入一条调试日志
Write a debug log
(继承自 LogNetBase。)
公共方法WriteDebug(String, String)
写入一条带关键字的调试日志
Write a debug log with keywords
(继承自 LogNetBase。)
公共方法WriteDescrition
写入一条解释性的信息,不属于消息等级控制的范畴
Write an explanatory message that is not part of message level control
(继承自 LogNetBase。)
公共方法WriteError(String)
写入一条错误日志
Write an error log
(继承自 LogNetBase。)
公共方法WriteError(String, String)
写入一条带关键字的错误日志
Write an error log with keywords
(继承自 LogNetBase。)
公共方法WriteException(String, Exception)
写入一条带关键字的异常信息
Write an exception log with keywords
(继承自 LogNetBase。)
公共方法WriteException(String, String, Exception)
写入一条带关键字和描述信息的异常信息
Write an exception log with keywords and text
(继承自 LogNetBase。)
公共方法WriteFatal(String)
写入一条致命日志
Write an fatal log
(继承自 LogNetBase。)
公共方法WriteFatal(String, String)
写入一条带关键字的致命日志
Write an fatal log with keywords
(继承自 LogNetBase。)
公共方法WriteInfo(String)
写入一条普通日志
Write an infomation log
(继承自 LogNetBase。)
公共方法WriteInfo(String, String)
写入一条带关键字的普通日志
Write an information log with keywords
(继承自 LogNetBase。)
公共方法WriteNewLine
写入一行换行符
Write a newline
(继承自 LogNetBase。)
公共方法WriteWarn(String)
写入一条警告日志
Write an warn log
(继承自 LogNetBase。)
公共方法WriteWarn(String, String)
写入一条带关键字的警告日志
Write an warn log with keywords
(继承自 LogNetBase。)
Top
扩展方法
  名称说明
公共扩展器方法ToJsonString
获取当前对象的JSON格式表示的字符串。
Gets the string represented by the JSON format of the current object.
(由 HslExtension 定义。)
Top
参见