Documentation
¶
Index ¶
- func AddWriter(writer io.Writer)
- func Debug(args ...any)
- func Debugf(format string, args ...interface{})
- func DeleteWriter(writer io.Writer)
- func Error(args ...any)
- func Errorf(format string, args ...interface{})
- func Fatalf(format string, args ...interface{})
- func Info(args ...any)
- func Infof(format string, args ...interface{})
- func Init(level zapcore.Level)
- func Panicf(format string, args ...interface{})
- func Warn(args ...any)
- func Warnf(format string, args ...interface{})
- func With(fields ...zap.Field) *zap.Logger
- type MultipleWriter
- type Zap
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteWriter ¶
func Errorf ¶
func Errorf(format string, args ...interface{})
Errorf logs a message at level Error on the standard logger.
func Fatalf ¶
func Fatalf(format string, args ...interface{})
Fatalf logs a message at level Fatal on the standard logger then the process will exit with status set to 1.
func Infof ¶
func Infof(format string, args ...interface{})
Infof logs a message at level Info on the standard logger.
func Panicf ¶
func Panicf(format string, args ...interface{})
Panicf logs a message at level Panic on the standard logger.
Types ¶
type MultipleWriter ¶
var colorableStdout = colorable.NewColorableStdout()
func (*MultipleWriter) Add ¶
func (m *MultipleWriter) Add(writer io.Writer)
func (*MultipleWriter) Delete ¶
func (m *MultipleWriter) Delete(writer io.Writer)
Click to show internal directories.
Click to hide internal directories.