Documentation ¶
Index ¶
- Variables
- func Channel(channel ...string) *zap.Logger
- func Debug(msg string, fields ...zap.Field)
- func Debugf(msg string, args ...interface{})
- func Error(msg string, fields ...zap.Field)
- func Errorf(msg string, args ...interface{})
- func Fatal(msg string, fields ...zap.Field)
- func Fatalf(msg string, args ...interface{})
- func Info(msg string, fields ...zap.Field)
- func Infof(msg string, args ...interface{})
- func NewNilLogger() *zap.Logger
- func NewStdLogger() *zap.Logger
- func Panic(msg string, fields ...zap.Field)
- func Panicf(msg string, args ...interface{})
- func Warn(msg string, fields ...zap.Field)
- func Warnf(msg string, args ...interface{})
- func With(fields ...zap.Field) *zap.Logger
- func WithDefaults(conf Config)
- func WithOptions(options ...zap.Option) *zap.Logger
- type ChannelRegister
- type Config
- type Manager
- func (m *Manager) AddRotate(r *writers.RotateFileWriter) *Manager
- func (m *Manager) Channel(channel ...string) (*zap.Logger, error)
- func (m *Manager) Cleanup()
- func (m *Manager) Resolve(channel string, cr ChannelRegister)
- func (m *Manager) Sync()
- func (m *Manager) Using(defaultChannel string) *Manager
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultChannel = "default"
View Source
var DefaultManager = NewManager()
View Source
var FallbackLogger = NewNilLogger()
Functions ¶
func NewNilLogger ¶ added in v0.0.2
func NewStdLogger ¶ added in v0.0.6
func WithDefaults ¶
func WithDefaults(conf Config)
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶
func NewManager() *Manager
func (*Manager) AddRotate ¶ added in v0.0.8
func (m *Manager) AddRotate(r *writers.RotateFileWriter) *Manager
func (*Manager) Resolve ¶
func (m *Manager) Resolve(channel string, cr ChannelRegister)
Click to show internal directories.
Click to hide internal directories.