Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FileInfo ¶
type FileInfo struct {
Name string `json:"name"`
Size int64 `json:"size"`
ModTime string `json:"modTime"`
}
FileInfo 日志文件信息
type LogEntry ¶
type LogEntry struct {
Time string `json:"time"`
Level string `json:"level"`
Caller string `json:"caller"`
Message string `json:"message"`
Logger string `json:"logger"`
Fields map[string]any `json:"-"`
Raw string `json:"raw"`
}
LogEntry 日志条目
type LogStats ¶
type LogStats struct {
Total int `json:"total"`
Trace int `json:"trace"`
Debug int `json:"debug"`
Info int `json:"info"`
Warnings int `json:"warnings"`
Errors int `json:"errors"`
Loggers []string `json:"loggers"`
}
LogStats 日志统计
type QueryRequest ¶
type QueryRequest struct {
Filter string `json:"filter"`
Level string `json:"level"`
Logger string `json:"logger"`
Keyword string `json:"keyword"`
Start string `json:"start"`
End string `json:"end"`
Limit int `json:"limit"`
Offset int `json:"offset"`
Tail bool `json:"tail"`
FileName string `json:"fileName"`
}
QueryRequest 查询请求
Click to show internal directories.
Click to hide internal directories.