Documentation ¶
Index ¶
- func Debug(args ...any)
- func Debugf(format string, args ...any)
- func Debugln(args ...any)
- func Error(args ...any)
- func Errorf(format string, args ...any)
- func Errorln(args ...any)
- func Fatal(args ...any)
- func Fatalf(format string, args ...any)
- func Fatalln(args ...any)
- func Info(args ...any)
- func Infof(format string, args ...any)
- func Infoln(args ...any)
- func Init(options ...Options) *zap.Logger
- func Panic(args ...any)
- func Panicf(format string, args ...any)
- func Panicln(args ...any)
- func Sync() error
- func Warn(args ...any)
- func Warnf(format string, args ...any)
- func Warnln(args ...any)
- type Logger
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Debugln ¶
func Debugln(args ...any)
Debugln logs a message at level Debug on the standard logger.
func Errorln ¶
func Errorln(args ...any)
Errorln logs a message at level Error on the standard logger.
func Fatal ¶
func Fatal(args ...any)
Fatal logs a message at level Fatal on the standard logger then the process will exit with status set to 1.
func Fatalf ¶
Fatalf logs a message at level Fatal on the standard logger then the process will exit with status set to 1.
func Fatalln ¶
func Fatalln(args ...any)
Fatalln logs a message at level Fatal on the standard logger then the process will exit with status set to 1.
func Panicln ¶
func Panicln(args ...any)
Panicln logs a message at level Panic on the standard logger.
func Sync ¶
func Sync() error
Sync calls the underlying Core's Sync method, flushing any buffered log entries. Applications should take care to call Sync before exiting.