Versions in this module Expand all Collapse all v1 v1.4.4 Nov 14, 2019 Changes in this version + const CONSOLE + const DisabledLevel + const JSON + const LOGFMT + const PayloadLevel + func ActivateSpec(spec string) + func DefaultLevel() string + func GetLoggerLevel(loggerName string) string + func Init(config Config) + func InitBackend(formatter logging.Formatter, output io.Writer) + func InitFromSpec(spec string) string + func IsValidLevel(level string) bool + func NameToLevel(level string) zapcore.Level + func NewGRPCLogger(l *zap.Logger) *zapgrpc.Logger + func NewZapLogger(core zapcore.Core, options ...zap.Option) *zap.Logger + func Reset() + func SetFormat(formatSpec string) logging.Formatter + type Config struct + Format string + LogSpec string + Writer io.Writer + type Core struct + Encoders map[Encoding]zapcore.Encoder + Levels *LoggerLevels + Observer Observer + Output zapcore.WriteSyncer + Selector EncodingSelector + func (c *Core) Check(e zapcore.Entry, ce *zapcore.CheckedEntry) *zapcore.CheckedEntry + func (c *Core) Sync() error + func (c *Core) With(fields []zapcore.Field) zapcore.Core + func (c *Core) Write(e zapcore.Entry, fields []zapcore.Field) error + type Encoding int8 + type EncodingSelector interface + Encoding func() Encoding + type FabricLogger struct + func MustGetLogger(loggerName string) *FabricLogger + func NewFabricLogger(l *zap.Logger, options ...zap.Option) *FabricLogger + func (f *FabricLogger) Critical(args ...interface{}) + func (f *FabricLogger) Criticalf(template string, args ...interface{}) + func (f *FabricLogger) DPanic(args ...interface{}) + func (f *FabricLogger) DPanicf(template string, args ...interface{}) + func (f *FabricLogger) DPanicw(msg string, kvPairs ...interface{}) + func (f *FabricLogger) Debug(args ...interface{}) + func (f *FabricLogger) Debugf(template string, args ...interface{}) + func (f *FabricLogger) Debugw(msg string, kvPairs ...interface{}) + func (f *FabricLogger) Error(args ...interface{}) + func (f *FabricLogger) Errorf(template string, args ...interface{}) + func (f *FabricLogger) Errorw(msg string, kvPairs ...interface{}) + func (f *FabricLogger) Fatal(args ...interface{}) + func (f *FabricLogger) Fatalf(template string, args ...interface{}) + func (f *FabricLogger) Fatalw(msg string, kvPairs ...interface{}) + func (f *FabricLogger) Info(args ...interface{}) + func (f *FabricLogger) Infof(template string, args ...interface{}) + func (f *FabricLogger) Infow(msg string, kvPairs ...interface{}) + func (f *FabricLogger) IsEnabledFor(level zapcore.Level) bool + func (f *FabricLogger) Named(name string) *FabricLogger + func (f *FabricLogger) Notice(args ...interface{}) + func (f *FabricLogger) Noticef(template string, args ...interface{}) + func (f *FabricLogger) Panic(args ...interface{}) + func (f *FabricLogger) Panicf(template string, args ...interface{}) + func (f *FabricLogger) Panicw(msg string, kvPairs ...interface{}) + func (f *FabricLogger) Sync() error + func (f *FabricLogger) Warn(args ...interface{}) + func (f *FabricLogger) Warnf(template string, args ...interface{}) + func (f *FabricLogger) Warning(args ...interface{}) + func (f *FabricLogger) Warningf(template string, args ...interface{}) + func (f *FabricLogger) Warnw(msg string, kvPairs ...interface{}) + func (f *FabricLogger) With(args ...interface{}) *FabricLogger + func (f *FabricLogger) WithOptions(opts ...zap.Option) *FabricLogger + func (f *FabricLogger) Zap() *zap.Logger + type LoggerLevels struct + func (l *LoggerLevels) ActivateSpec(spec string) error + func (l *LoggerLevels) DefaultLevel() zapcore.Level + func (l *LoggerLevels) Enabled(lvl zapcore.Level) bool + func (l *LoggerLevels) Level(loggerName string) zapcore.Level + func (l *LoggerLevels) Spec() string + type Logging struct + var Global *Logging + func New(c Config) (*Logging, error) + func (s *Logging) Apply(c Config) error + func (s *Logging) Check(e zapcore.Entry, ce *zapcore.CheckedEntry) + func (s *Logging) Encoding() Encoding + func (s *Logging) Logger(name string) *FabricLogger + func (s *Logging) SetFormat(format string) error + func (s *Logging) SetObserver(observer Observer) + func (s *Logging) SetWriter(w io.Writer) + func (s *Logging) Sync() error + func (s *Logging) Write(b []byte) (int, error) + func (s *Logging) WriteEntry(e zapcore.Entry, fields []zapcore.Field) + func (s *Logging) ZapLogger(name string) *zap.Logger + type Observer interface + Check func(e zapcore.Entry, ce *zapcore.CheckedEntry) + WriteEntry func(e zapcore.Entry, fields []zapcore.Field)