Documentation ¶
Index ¶
- func Register(register eosc.IExtenderDriverRegister)
- type Config
- type Driver
- type Factory
- type FileOutput
- func (a *FileOutput) CheckSkill(skill string) bool
- func (a *FileOutput) Id() string
- func (a *FileOutput) Output(entry eosc.IEntry) error
- func (a *FileOutput) Reset(conf interface{}, workers map[eosc.RequireId]eosc.IWorker) (err error)
- func (a *FileOutput) Start() error
- func (a *FileOutput) Stop() error
- type FileWriter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { File string `json:"file" yaml:"file" label:"文件名称"` Dir string `json:"dir" yaml:"dir" label:"文件存放目录"` Period string `json:"period" yaml:"period" enum:"hour,day" label:"日志分割周期"` Expire int `json:"expire" yaml:"expire" label:"日志保存时间" description:"单位:天" default:"7" minimum:"1"` Type string `json:"type" yaml:"type" enum:"json,line" label:"输出格式"` Formatter eosc.FormatterConfig `json:"formatter" yaml:"formatter" label:"格式化配置"` }
type Driver ¶
type Driver struct {
// contains filtered or unexported fields
}
func (*Driver) ConfigType ¶
type Factory ¶
type Factory struct { }
func NewFactory ¶
func NewFactory() *Factory
type FileOutput ¶
type FileOutput struct {
// contains filtered or unexported fields
}
func (*FileOutput) CheckSkill ¶
func (a *FileOutput) CheckSkill(skill string) bool
func (*FileOutput) Id ¶
func (a *FileOutput) Id() string
func (*FileOutput) Start ¶
func (a *FileOutput) Start() error
func (*FileOutput) Stop ¶
func (a *FileOutput) Stop() error
type FileWriter ¶ added in v0.8.0
type FileWriter struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.