Documentation
¶
Index ¶
- Constants
- func Configure(cfg Config) error
- func Cron(name string) cron.Logger
- func Debug(msg string, fields ...zap.Field)
- func Default() *zap.Logger
- func Error(msg string, err error, fields ...zap.Field)
- func From(app *runtime.App) *zap.Logger
- func Info(msg string, fields ...zap.Field)
- func Init(name, level, mode string) error
- func Named(name string) *zap.Logger
- func New(name string) (*zap.Logger, error)
- func Sync()
- func Use(opts ...UseOption) runtime.Capability
- func Warn(msg string, fields ...zap.Field)
- func WriteSyncer(name, filename string) (zapcore.WriteSyncer, error)
- func Writer(name, filename string) (io.Writer, error)
- type AsynqLogger
- type Config
- type ConfigLoader
- type RotationConfig
- type UseOption
Constants ¶
View Source
const Name = string(corelogger.KeyLogger)
Variables ¶
This section is empty.
Functions ¶
func Use ¶
func Use(opts ...UseOption) runtime.Capability
func WriteSyncer ¶
func WriteSyncer(name, filename string) (zapcore.WriteSyncer, error)
Types ¶
type AsynqLogger ¶
type AsynqLogger = corelogger.AsynqLogger
func Asynq ¶
func Asynq(name string) *AsynqLogger
type Config ¶
type Config = corelogger.Config
type RotationConfig ¶
type RotationConfig = corelogger.RotationConfig
type UseOption ¶
type UseOption func(*useOptions)
func WithConfig ¶
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 ¶
Click to show internal directories.
Click to hide internal directories.