Documentation ¶
Index ¶
- func Debug(args ...interface{})
- func Debugf(template string, args ...interface{})
- func Debugw(msg string, keysAndValues ...interface{})
- func Error(args ...interface{})
- func Errorf(template string, args ...interface{})
- func Errorw(msg string, keysAndValues ...interface{})
- func Fatal(args ...interface{})
- func Fatalf(template string, args ...interface{})
- func Fatalw(msg string, keysAndValues ...interface{})
- func FormatProto(arg protoreflect.ProtoMessage) string
- func Info(args ...interface{})
- func Infof(template string, args ...interface{})
- func Infow(msg string, keysAndValues ...interface{})
- func Init(logLevel string, output string)
- func Logger() *zap.SugaredLogger
- func SetFileErrorLog(path string) error
- func Warn(args ...interface{})
- func Warnf(template string, args ...interface{})
- func Warnw(msg string, keysAndValues ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Debugf ¶
func Debugf(template string, args ...interface{})
Debugf sends a formatted debug level log message
func Debugw ¶
func Debugw(msg string, keysAndValues ...interface{})
Debugw sends a key-value formatted debug level log message
func Errorf ¶
func Errorf(template string, args ...interface{})
Errorf sends a formatted error level log message
func Errorw ¶
func Errorw(msg string, keysAndValues ...interface{})
Errorw sends a key-value formatted error level log message
func Fatalf ¶
func Fatalf(template string, args ...interface{})
Fatalf sends a formatted fatal level log message
func Fatalw ¶
func Fatalw(msg string, keysAndValues ...interface{})
Fatalw sends a key-value formatted fatal level log message
func FormatProto ¶
func FormatProto(arg protoreflect.ProtoMessage) string
func Infof ¶
func Infof(template string, args ...interface{})
Infof sends a formatted info level log message
func Infow ¶
func Infow(msg string, keysAndValues ...interface{})
Infow sends a key-value formatted info level log message
func Logger ¶
func Logger() *zap.SugaredLogger
func SetFileErrorLog ¶
SetFileErrorLog if set writes the Warning and Error messages to a file.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.