Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithFormatter ¶
func WithFormatter(formatter monolog.Formatter) monolog.HandlerOpt
Types ¶
type Handler ¶
type Handler struct { *monolog.Handlerable // contains filtered or unexported fields }
Handler is a file handler. Because of the frequent opening and closing of file handles, the performance is not good. stream handler is recommended. PS: Although its performance is not good, its concurrency in seconds is enough for most uses, on my machine it was about 117832, and the request time per log was 8775 ns.
func NewHandler ¶
func NewHandler(filename string, opts ...monolog.HandlerOpt) *Handler
Click to show internal directories.
Click to hide internal directories.