logger

package
v0.1.21 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

Variables

This section is empty.

Functions

func Configure

func Configure(cfg Config) error

func Cron

func Cron(name string) cron.Logger

func Debug

func Debug(msg string, fields ...zap.Field)

func Default

func Default() *zap.Logger

func Error

func Error(msg string, err error, fields ...zap.Field)

func From

func From(app *runtime.App) *zap.Logger

func Info

func Info(msg string, fields ...zap.Field)

func Init

func Init(name, level, mode string) error

func Named

func Named(name string) *zap.Logger

func New

func New(name string) (*zap.Logger, error)

func Sync

func Sync()

func Use

func Use(opts ...UseOption) runtime.Capability

func Warn

func Warn(msg string, fields ...zap.Field)

func WriteSyncer

func WriteSyncer(name, filename string) (zapcore.WriteSyncer, error)

func Writer

func Writer(name, filename string) (io.Writer, error)

Types

type AsynqLogger

type AsynqLogger = corelogger.AsynqLogger

func Asynq

func Asynq(name string) *AsynqLogger

type Config

type Config = corelogger.Config

type ConfigLoader

type ConfigLoader func(app *runtime.App) (Config, error)

type RotationConfig

type RotationConfig = corelogger.RotationConfig

type UseOption

type UseOption func(*useOptions)

func WithConfig

func WithConfig(cfg Config) UseOption

func WithConfigLoader

func WithConfigLoader(loader ConfigLoader) UseOption

func WithDependencies

func WithDependencies(deps ...runtime.Dependency) UseOption

func WithExternal added in v0.1.4

func WithExternal() UseOption

func WithInternal

func WithInternal() UseOption

func WithLogger

func WithLogger(log *zap.Logger) UseOption

Jump to

Keyboard shortcuts

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