Documentation ¶
Index ¶
- func NewFileRotateWriter(file string, maxSize, maxBackups, maxAge int) io.Writer
- func NewOpenObserveWriter(url string, org, group string, username, password string, immediately bool) io.Writer
- func NewSharpHandler(handler ...slog.Handler) slog.Handler
- func NewSimpleHandler(w io.Writer, opts *slog.HandlerOptions, timeLayout string, color bool) slog.Handler
- func NewZincsearchWriter(url string, namespace string, username, password string, immediately bool) io.Writer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFileRotateWriter ¶
func NewOpenObserveWriter ¶
func NewOpenObserveWriter(url string, org, group string, username, password string, immediately bool) io.Writer
NewOpenObserveWriter will write log to openobserve(https://github.com/openobserve/openobserve) url is openobserve server addr. example: http://localhost:5080
func NewSharpHandler ¶
NewSharpHandler wrap multi-handler as one handler
func NewSimpleHandler ¶
func NewZincsearchWriter ¶
func NewZincsearchWriter(url string, namespace string, username, password string, immediately bool) io.Writer
NewZincsearchWriter will write log to zincsearch(https://github.com/zincsearch/zincsearch) url is zincsearch server addr. example: http://localhost:4080
Types ¶
This section is empty.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.