Documentation ¶
Overview ¶
Package logger is unified facade provided by Dubbo to work with different logger frameworks, eg, Zapper, Logrus.
Index ¶
- func FileConfig(config *common.URL) *lumberjack.Logger
- type Option
- func WithAppender(appender string) Option
- func WithFileCompress() Option
- func WithFileMaxAge(age int) Option
- func WithFileMaxBackups(backups int) Option
- func WithFileMaxSize(size int) Option
- func WithFileName(name string) Option
- func WithFormat(format string) Option
- func WithLevel(level string) Option
- func WithLogrus() Option
- func WithZap() Option
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FileConfig ¶
Types ¶
type Option ¶
type Option func(*Options)
func WithAppender ¶
func WithFileCompress ¶
func WithFileCompress() Option
func WithFileMaxAge ¶
func WithFileMaxBackups ¶
func WithFileMaxSize ¶
func WithFileName ¶
func WithFormat ¶
func WithLogrus ¶
func WithLogrus() Option
Click to show internal directories.
Click to hide internal directories.