Documentation ¶
Index ¶
- func Debug(msg string, keyvals ...interface{})
- func Error(msg string, keyvals ...interface{})
- func Fatal(msg string, keyvals ...interface{})
- func Info(msg string, keyvals ...interface{})
- func SetKratosLogger(logger Logger)
- func SetLogger(logger Logger)
- func Warn(msg string, keyvals ...interface{})
- type Logger
- type Option
- func CallerDepth(d int) Option
- func EnableConsole(enable bool) Option
- func EncodeConfig(config zapcore.EncoderConfig) Option
- func FilenamePrefix(prefix string) Option
- func Level(level configv1.Level) Option
- func Meta(key string, value interface{}) Option
- func OnlyConsole(only bool) Option
- func OutputPath(path string) Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetKratosLogger ¶
func SetKratosLogger(logger Logger)
Types ¶
type Logger ¶
func NewZapLogger ¶
type Option ¶
type Option func(*option)
func CallerDepth ¶
func EnableConsole ¶
func EncodeConfig ¶
func EncodeConfig(config zapcore.EncoderConfig) Option
func FilenamePrefix ¶
func OnlyConsole ¶
func OutputPath ¶
Click to show internal directories.
Click to hide internal directories.