logger

package
v0.0.0-...-834ce46 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func L

func L() *slog.Logger

func LogError

func LogError(err error)

func New

func New(cfg Config, opt *slog.HandlerOptions) *slog.Logger

func SetLevel

func SetLevel(modeLevel slog.Level)

func WithGroup

func WithGroup(groupName string) *slog.Logger

Types

type Config

type Config struct {
	FilePath         string
	UseLocalTime     bool
	FileMaxSizeInMB  int
	FileMaxAgeInDays int
}

Jump to

Keyboard shortcuts

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