ILogNet 方法 |
ILogNet 类型公开以下成员。
名称 | 说明 | |
---|---|---|
Dispose | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. (继承自 IDisposable。) | |
FiltrateKeyword |
过滤掉指定的关键字的日志,该信息不存储,但仍然触发BeforeSaveToFile事件 Filter out the logs of the specified keywords, the information is not stored, but the BeforeSaveToFile event is still triggered | |
GetExistLogFileNames |
获取已存在的日志文件名称 Get the name of an existing log file | |
RecordMessage |
通过指定消息等级,关键字,日志信息进行消息记录 Record messages by specifying message level, keywords, and log information | |
RemoveFiltrate |
移除过滤的关键字存储 Remove filtered keyword storage | |
SetMessageDegree |
设置日志的存储等级,高于该等级的才会被存储 Set the storage level of the logs. Only the logs above this level will be stored. | |
WriteAnyString |
写入任意字符串 Write arbitrary string | |
WriteDebug(String) |
写入一条调试日志 Write a debug log | |
WriteDebug(String, String) |
写入一条带关键字的调试日志 Write a debug log with keywords | |
WriteDescrition |
写入一条解释性的信息,不属于消息等级控制的范畴 Write an explanatory message that is not part of message level control | |
WriteError(String) |
写入一条错误日志 Write an error log | |
WriteError(String, String) |
写入一条带关键字的错误日志 Write an error log with keywords | |
WriteException(String, Exception) |
写入一条带关键字的异常信息 Write an exception log with keywords | |
WriteException(String, String, Exception) |
写入一条带关键字和描述信息的异常信息 Write an exception log with keywords and text | |
WriteFatal(String) |
写入一条致命日志 Write an fatal log | |
WriteFatal(String, String) |
写入一条带关键字的致命日志 Write an fatal log with keywords | |
WriteInfo(String) |
写入一条普通日志 Write an infomation log | |
WriteInfo(String, String) |
写入一条带关键字的普通日志 Write an information log with keywords | |
WriteNewLine |
写入一行换行符 Write a newline | |
WriteWarn(String) |
写入一条警告日志 Write an warn log | |
WriteWarn(String, String) |
写入一条带关键字的警告日志 Write an warn log with keywords |