Versions in this module Expand all Collapse all v1 v1.0.1 Mar 12, 2024 Changes in this version + const CONSOLE + const DisabledLevel + const JSON + const LOGFMT + const PayloadLevel + func ActivateSpec(spec string) + func DefaultLevel() string + func Init(config Config) + func IsValidLevel(level string) bool + func LoggerLevel(loggerName string) string + 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 SetWriter(w io.Writer) io.Writer + 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 (l *Logging) Apply(c Config) error + func (l *Logging) Check(e zapcore.Entry, ce *zapcore.CheckedEntry) + func (l *Logging) Encoding() Encoding + func (l *Logging) Logger(name string) *FabricLogger + func (l *Logging) SetFormat(format string) error + func (l *Logging) SetObserver(observer Observer) Observer + func (l *Logging) SetWriter(w io.Writer) io.Writer + func (l *Logging) Sync() error + func (l *Logging) Write(b []byte) (int, error) + func (l *Logging) WriteEntry(e zapcore.Entry, fields []zapcore.Field) + func (l *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) + func SetObserver(observer Observer) Observer