Documentation
¶
Index ¶
- func Debug(msg string, fields ...zap.Field)
- func Error(msg string, fields ...zap.Field)
- func Fatal(msg string, fields ...zap.Field)
- func GetLogger() *zap.Logger
- func Info(msg string, fields ...zap.Field)
- func InitAppLogger(c *Config, opts ...zap.Option)
- func NewLogger(c *Config, opts ...zap.Option) *zap.Logger
- func Panic(msg string, fields ...zap.Field)
- func Sync()
- func Warn(msg string, fields ...zap.Field)
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitAppLogger ¶
InitAppLogger init default log
func NewLogger ¶
NewLogger return a new logger
func Sync ¶
func Sync()
Sync calls the underlying Core's Sync method, flushing any buffered log entries. Applications should take care to call Sync before exiting.
Types ¶
Click to show internal directories.
Click to hide internal directories.