Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type EVT_EXPORTLOG_FLAGS ¶
type EVT_EXPORTLOG_FLAGS uint32
EVT_EXPORTLOG_FLAGS 表示事件日志导出的标志类型
const ( // EvtExportLogChannelPath 表示导出通道路径 EvtExportLogChannelPath EVT_EXPORTLOG_FLAGS = 0x1 // EvtExportLogFilePath 表示导出文件路径 EvtExportLogFilePath EVT_EXPORTLOG_FLAGS = 0x2 // EvtExportLogTolerateQueryErrors 表示容忍查询错误 EvtExportLogTolerateQueryErrors EVT_EXPORTLOG_FLAGS = 0x1000 // EvtExportLogOverwrite 表示覆盖已有文件 EvtExportLogOverwrite EVT_EXPORTLOG_FLAGS = 0x2000 )
type EventLog ¶
type EventLog interface {
Open(recordNumber uint64) error // 打开日志,从指定记录后读取
Read() ([]Record, error) // 读取事件记录
Close() error // 关闭日志资源
}
EventLog 定义Windows事件日志操作接口(保持原接口设计)
Click to show internal directories.
Click to hide internal directories.