Documentation
¶
Index ¶
- type FileInfo
- type LogRotateConfig
- func (l *LogRotateConfig) API_download(w http.ResponseWriter, r *http.Request)
- func (l *LogRotateConfig) API_find(w http.ResponseWriter, r *http.Request)
- func (l *LogRotateConfig) API_list(w http.ResponseWriter, r *http.Request)
- func (l *LogRotateConfig) API_open(w http.ResponseWriter, r *http.Request)
- func (l *LogRotateConfig) API_tail(w http.ResponseWriter, r *http.Request)
- func (config *LogRotateConfig) OnEvent(event any)
- func (l *LogRotateConfig) Write(data []byte) (n int, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LogRotateConfig ¶
type LogRotateConfig struct { Path string `default:"./logs" desc:"日志文件存放目录"` Size int64 `desc:"日志文件大小,单位:字节"` Days int `default:"1" desc:"日志文件保留天数"` Formatter string `default:"2006-01-02T15" desc:"日志文件名格式"` // contains filtered or unexported fields }
func (*LogRotateConfig) API_download ¶
func (l *LogRotateConfig) API_download(w http.ResponseWriter, r *http.Request)
func (*LogRotateConfig) API_find ¶
func (l *LogRotateConfig) API_find(w http.ResponseWriter, r *http.Request)
func (*LogRotateConfig) API_list ¶
func (l *LogRotateConfig) API_list(w http.ResponseWriter, r *http.Request)
func (*LogRotateConfig) API_open ¶
func (l *LogRotateConfig) API_open(w http.ResponseWriter, r *http.Request)
func (*LogRotateConfig) API_tail ¶
func (l *LogRotateConfig) API_tail(w http.ResponseWriter, r *http.Request)
func (*LogRotateConfig) OnEvent ¶
func (config *LogRotateConfig) OnEvent(event any)
Click to show internal directories.
Click to hide internal directories.