Documentation
¶
Index ¶
- func NewFileLog(name string, rotationTime time.Duration, rotationBytes FileSize) (logo.Persister, error)
- func NewFluentLog(network, addrs string, port int, tag string) (logo.Persister, error)
- func NewStdoutLog() (logo.Persister, error)
- func NewSyslog(network, raddr string, priority syslog.Priority, tag string) (logo.Persister, error)
- type FileSize
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFileLog ¶
func NewFileLog(name string, rotationTime time.Duration, rotationBytes FileSize) (logo.Persister, error)
NewFileLog 创建文件持久化器 name: 日志文件前缀 rotationTime: 日志文件切割的间隔时间,为0忽略 rotationBytes: 触发日志文件切割的大小,为0忽略 level: 仅保存<=level级别的日志,可以实现分文件保存不同级别日志
func NewFluentLog ¶
NewFluentLog 创建fluentPersister对象 network可选tcp/unix,addrs为addr(tcp) or path(unix)
Types ¶
Click to show internal directories.
Click to hide internal directories.