Documentation ¶
Index ¶
- Constants
- type ZapLogger
- func (l *ZapLogger) Debug(args ...interface{})
- func (l *ZapLogger) Debugf(template string, args ...interface{})
- func (l *ZapLogger) Error(args ...interface{})
- func (l *ZapLogger) Errorf(template string, args ...interface{})
- func (l *ZapLogger) Fatal(args ...interface{})
- func (l *ZapLogger) Fatalf(template string, args ...interface{})
- func (l *ZapLogger) GetLogPath() (string, error)
- func (l *ZapLogger) GetServerStreamInterceptor() grpc.StreamServerInterceptor
- func (l *ZapLogger) GetServerUnaryInterceptor() grpc.UnaryServerInterceptor
- func (l *ZapLogger) Info(args ...interface{})
- func (l *ZapLogger) Infof(template string, args ...interface{})
- func (l *ZapLogger) InitLogger(extraFields map[string]interface{})
- func (l *ZapLogger) Panic(args ...interface{})
- func (l *ZapLogger) Panicf(template string, args ...interface{})
- func (l *ZapLogger) Warn(args ...interface{})
- func (l *ZapLogger) Warnf(template string, args ...interface{})
- func (l *ZapLogger) WithFields(args map[string]interface{}) logging.Logger
Constants ¶
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ZapLogger ¶
type ZapLogger struct {
// contains filtered or unexported fields
}
ZapLogger implements Logger interface as defined in "go.amplifyedge.org/sys-share-v2/sys-core/service/logging"
func NewZapLogger ¶
func NewZapLogger(level zapcore.Level, moduleName string, isDevelopmentMode bool, storagePath string) *ZapLogger
Zap Logger constructor
func (*ZapLogger) GetServerStreamInterceptor ¶
func (l *ZapLogger) GetServerStreamInterceptor() grpc.StreamServerInterceptor
func (*ZapLogger) GetServerUnaryInterceptor ¶
func (l *ZapLogger) GetServerUnaryInterceptor() grpc.UnaryServerInterceptor
func (*ZapLogger) InitLogger ¶
Init logger
Click to show internal directories.
Click to hide internal directories.