sharp

package module
v0.10.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 10, 2024 License: BSD-2-Clause Imports: 8 Imported by: 0

README

sharp

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFileRotateWriter

func NewFileRotateWriter(file string, maxSize, maxBackups, maxAge int) io.Writer

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

func NewSharpHandler(handler ...slog.Handler) slog.Handler

NewSharpHandler wrap multi-handler as one handler

func NewSimpleHandler

func NewSimpleHandler(w io.Writer, opts *slog.HandlerOptions, timeLayout string, color bool) slog.Handler

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL