Documentation ¶
Index ¶
- type ZapLog
- func (z *ZapLog) Debug(logMessageData string, fields ...zap.Field)
- func (z *ZapLog) Debugf(logTemplateData string, args ...interface{})
- func (z *ZapLog) Debugw(logMessageData string, keyValuePairs ...interface{})
- func (z *ZapLog) Error(logMessageData string, fields ...zap.Field)
- func (z *ZapLog) Errorf(logTemplateData string, args ...interface{})
- func (z *ZapLog) Errorw(logMessageData string, keyValuePairs ...interface{})
- func (z *ZapLog) Fatal(logMessageData string, fields ...zap.Field)
- func (z *ZapLog) Fatalf(logTemplateData string, args ...interface{})
- func (z *ZapLog) Fatalw(logMessageData string, keyValuePairs ...interface{})
- func (z *ZapLog) Info(logMessageData string, fields ...zap.Field)
- func (z *ZapLog) Infof(logTemplateData string, args ...interface{})
- func (z *ZapLog) Infow(logMessageData string, keyValuePairs ...interface{})
- func (z *ZapLog) Init() error
- func (z *ZapLog) Panic(logMessageData string, fields ...zap.Field)
- func (z *ZapLog) Panicf(logTemplateData string, args ...interface{})
- func (z *ZapLog) Panicw(logMessageData string, keyValuePairs ...interface{})
- func (z *ZapLog) Printf(format string, items ...interface{})
- func (z *ZapLog) Sync()
- func (z *ZapLog) Warn(logMessageData string, fields ...zap.Field)
- func (z *ZapLog) Warnf(logTemplateData string, args ...interface{})
- func (z *ZapLog) Warnw(logMessageData string, keyValuePairs ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ZapLog ¶
type ZapLog struct { // operating var DisableLogger bool OutputToConsole bool AppName string // contains filtered or unexported fields }
ZapLog is a wrapper for Zap logger package
DisableLogger = disables the logger from operations, this allows code to be left in place while not performing logging action OutputToConsole = redirects log output to console instead of file AppName = required, this app's name
func (*ZapLog) Debug ¶
Debug is faster logging, but requires import of zap package, uses zap.String(), zap.Int(), etc in fields parameters
func (*ZapLog) Error ¶
Error is faster logging, but requires import of zap package, uses zap.String(), zap.Int(), etc in fields parameters
func (*ZapLog) Fatal ¶
Fatal is faster logging, but requires import of zap package, uses zap.String(), zap.Int(), etc in fields parameters
func (*ZapLog) Info ¶
Info is faster Logging, but requires import of zap package, uses zap.String(), zap.Int(), etc in fields parameters
func (*ZapLog) Init ¶
Init will initialize and prepare the zap log wrapper for use,
...-internal-err.log = internal zap errors logged, this file may be created but may contain no data as there may not be any internal zap errors log output to file is 'appname.log'
func (*ZapLog) Panic ¶
Panic is faster logging, but requires import of zap package, uses zap.String(), zap.Int(), etc in fields parameters
func (*ZapLog) Warn ¶
Warn is faster logging, but requires import of zap package, uses zap.String(), zap.Int(), etc in fields parameters