logx

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func FileAndTerminalStdout

func FileAndTerminalStdout(path, fileName string) io.Writer

func FileStdout

func FileStdout(filepath, fileName string) io.Writer

func New

func New(writer io.Writer, opts ...Option)

Types

type Option

type Option func(c *config)

func WithHandler

func WithHandler(handler slog.Handler) Option

func WithHandlerType

func WithHandlerType(handlerType string) Option

func WithLevel

func WithLevel(level string) Option

func WithSource

func WithSource(addSource bool) Option

Jump to

Keyboard shortcuts

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