logger

package
v3.2.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2024 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Overview

Package logger is unified facade provided by Dubbo to work with different logger frameworks, eg, Zapper, Logrus.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FileConfig

func FileConfig(config *common.URL) *lumberjack.Logger

Types

type Option

type Option func(*Options)

func WithAppender

func WithAppender(appender string) Option

func WithFileCompress

func WithFileCompress() Option

func WithFileMaxAge

func WithFileMaxAge(age int) Option

func WithFileMaxBackups

func WithFileMaxBackups(backups int) Option

func WithFileMaxSize

func WithFileMaxSize(size int) Option

func WithFileName

func WithFileName(name string) Option

func WithFormat

func WithFormat(format string) Option

func WithLevel

func WithLevel(level string) Option

func WithLogrus

func WithLogrus() Option

func WithZap

func WithZap() Option

type Options

type Options struct {
	Logger *global.LoggerConfig
}

func NewOptions

func NewOptions(opts ...Option) *Options

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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