点击或拖拽改变大小

HslCommunication.LogNet 命名空间

[缺少 "N:HslCommunication.LogNet" 的 <summary> 文档]

  说明
公共类FormLogNetView
日志查看器的窗口类,用于分析统计日志数据,实例化的时候可以直接日志文件,然后直接显示出文件内容出来,然后可以根据日志的等级,或是关键字进行搜索信息
The window class of the log viewer is used to analyze the statistical log data, and when instantiating, you can directly log the file, and then directly display the file content, and then you can search for information according to the level of the log or keyword
公共类HslEventArgs
带有日志消息的事件
公共类HslMessageItem
单条日志的记录信息,包含了消息等级,线程号,关键字,文本信息
Record information of a single log, including message level, thread number, keywords, text information
公共类LogNetAnalysisControl
一个用于日志分析的控件
公共类LogNetBase
日志存储类的基类,提供一些基础的服务
公共类代码示例LogNetDateTime
一个日志组件,可以根据时间来区分不同的文件存储
A log component that can distinguish different file storages based on time
公共类LogNetException
日志存储回调的异常信息
公共类代码示例LogNetFileSize
根据文件的大小来存储日志信息,当前的文件大小增长超过设定值,就会创建新的文件来存储,新的文件命名为当前时间。
Log information is stored according to the size of the file. If the current file size exceeds the set value, a new file is created for storage, and the new file is named the current time.
公共类LogNetManagment
日志类的管理器,提供了基本的功能代码。
The manager of the log class provides the basic function code.
公共类代码示例LogNetSingle
单日志文件对象,所有的日志信息的记录都会写入一个文件里面去。文件名指定为空的时候,自动不存储文件。
Single log file object, all log information records will be written to a file. When the file name is specified as empty, the file is not stored automatically.
公共类LogPathBase
基于路径实现的日志类的基类,提供几个基础的方法信息。
The base class of the log class implemented based on the path provides several basic method information.
公共类代码示例LogStatistics
一个统计次数的辅助类,可用于实现分析一些次数统计信息,比如统计某个API最近每天的访问次数, 统计日志组件最近每天访问的次数,调用者只需要关心统计方式和数据个数,详细参照API文档。
An auxiliary class for counting the number of times, which can be used to realize the analysis of some number of times statistical information, such as counting the number of daily visits of an API, and counting the number of daily visits of the log component. The caller only needs to care about the statistical method and the number of data. Refer to details API documentation.
公共类LogStatisticsBaseT
一个按照实际进行数据分割的辅助基类,可以用于实现对某个的API按照每天进行调用次数统计,也可以实现对某个设备数据按照天进行最大最小值均值分析,这些都是需要继承实现。
An auxiliary base class that divides the data according to the actual data can be used to implement statistics on the number of calls per day for a certain API, and it can also implement the maximum and minimum average analysis of a certain device data according to the day. These all need to be inherited. .
公共类LogStatisticsDict
的词典集合类,用于多个数据的统计信息,例如可以统计多个规格的产量信息,统计多个方法的调用次数信息
The dictionary collection class of is used for the statistical information of multiple data, for example, the output information of multiple specifications can be counted, and the number of calls of multiple methods can be counted.
公共类代码示例LogValueLimit
一个用于数值范围记录的类,可以按照时间进行分类统计,比如计算一个温度值的每天的开始值,结束值,最大值,最小值,平均值信息。详细见API文档信息。
A class used to record the value range, which can be classified according to time, such as calculating the start value, end value, maximum value, minimum value, and average value of a temperature value. See the API documentation for details.
公共类LogValueLimitDict
的词典集合类,用于多个数据的统计信息,例如可以统计多个温度变量的最大值,最小值,平均值
The dictionary collection class, used for statistical information of multiple data, for example, it can count the maximum, minimum, and average values of multiple temperature variables
接口
  接口说明
公共接口代码示例ILogNet
一个通用的日志接口,支持5个等级的日志消息写入,支持设置当前的消息等级,定义一个消息存储前的触发事件。
A general-purpose log interface, supports the writing of 5 levels of log messages, supports setting the current message level, and defining a trigger event before a message is stored.
枚举
  枚举说明
公共枚举GenerateMode
日志文件输出模式
公共枚举HslMessageDegree
记录消息的等级
公共枚举LogSaveMode
日志文件的存储模式