Documentation ¶
Index ¶
- Variables
- func ColorErr(a ...interface{})
- func ColorFErr(w io.Writer, a []interface{})
- func ColorFInfo(w io.Writer, a []interface{})
- func ColorFInfof(w io.Writer, format string, a []interface{})
- func ColorInfo(a ...interface{})
- func ColorInfof(format string, a ...interface{})
- func InitLogger(appName string, optionals Optionals)
- func NewDynamicCore(enc zapcore.Encoder, enab zapcore.LevelEnabler) zapcore.Core
- func RandString(n int) string
- func RegisterWriter(name string, w io.Writer) error
- func UnRegisterWriter(name string)
- type DynamicCore
- func (d *DynamicCore) Check(ent zapcore.Entry, ce *zapcore.CheckedEntry) *zapcore.CheckedEntry
- func (d *DynamicCore) Sync() error
- func (d *DynamicCore) UnRegisterWriter(name string)
- func (d *DynamicCore) With(fields []zapcore.Field) zapcore.Core
- func (d *DynamicCore) Write(ent zapcore.Entry, fields []zapcore.Field) error
- type Optionals
Constants ¶
This section is empty.
Variables ¶
View Source
var Logger *zap.Logger
Functions ¶
func ColorFInfo ¶
func ColorFInfof ¶
func ColorInfof ¶
func ColorInfof(format string, a ...interface{})
func NewDynamicCore ¶ added in v1.0.8
func RandString ¶
Types ¶
type DynamicCore ¶ added in v1.0.8
type DynamicCore struct { zapcore.LevelEnabler // contains filtered or unexported fields }
func (*DynamicCore) Check ¶ added in v1.0.8
func (d *DynamicCore) Check(ent zapcore.Entry, ce *zapcore.CheckedEntry) *zapcore.CheckedEntry
func (*DynamicCore) Sync ¶ added in v1.0.8
func (d *DynamicCore) Sync() error
func (*DynamicCore) UnRegisterWriter ¶ added in v1.0.11
func (d *DynamicCore) UnRegisterWriter(name string)
Click to show internal directories.
Click to hide internal directories.