logger

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AxiomTokenProd  = "eGFhdC1lNDRjZjRmMS02NGY1LTQyZWMtOGM4MC05MzA4ZjU1NmE0ZmRhem93ZXJuYXNkZm9pYQ=="
	AxiomTokenStage = "eGFhdC02YTk0NTQ1NC01YWRiLTRjMmYtYjkzNi0zN2RlZDNlOTI2MzNhem93ZXJuYXNkZm9pYQ=="
	AxiomTokenDev   = "eGFhdC0zMGVhM2FiNy02NWJkLTQ2MzYtYjk5Ny02YzBjMDg5MzM2M2Nhem93ZXJuYXNkZm9pYQ=="
)

Variables

This section is empty.

Functions

func CreateLogger

func CreateLogger(env, level string) (*zap.Logger, error)

Types

type CliHandler

type CliHandler struct {
	// contains filtered or unexported fields
}

Log handler specifically for CLI usage.

func NewCliHandler

func NewCliHandler(h slog.Handler) *CliHandler

func (*CliHandler) Enabled

func (h *CliHandler) Enabled(ctx context.Context, level slog.Level) bool

func (*CliHandler) Handle

func (h *CliHandler) Handle(ctx context.Context, r slog.Record) error

func (*CliHandler) Handler

func (h *CliHandler) Handler() slog.Handler

func (*CliHandler) WithAttrs

func (h *CliHandler) WithAttrs(attrs []slog.Attr) slog.Handler

func (*CliHandler) WithGroup

func (h *CliHandler) WithGroup(name string) slog.Handler

Jump to

Keyboard shortcuts

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