package
0.0.0-20210802113545-39db037a866c
Repository: https://github.com/api7/apisix-mesh-agent.git
Documentation: pkg.go.dev

# Functions

Debug uses the fmt.Sprint to construct and log a message using the DefaultLogger.
Debugf uses the fmt.Sprintf to log a templated message using the DefaultLogger.
Debugw logs a message with some additional context using the DefaultLogger.
Error uses the fmt.Sprint to construct and log a message using the DefaultLogger.
Errorf uses the fmt.Sprintf to log a templated message using the DefaultLogger.
Errorw logs a message with some additional context using the DefaultLogger.
Fatal uses the fmt.Sprint to construct and log a message using the DefaultLogger.
Fatalf uses the fmt.Sprintf to log a templated message using the DefaultLogger.
Fatalw logs a message with some additional context using the DefaultLogger.
Info uses the fmt.Sprint to construct and log a message using the DefaultLogger.
Infof uses the fmt.Sprintf to log a templated message using the DefaultLogger.
Infow logs a message with some additional context using the DefaultLogger.
NewLogger sets up a Logger object according to a series of options.
Panic uses the fmt.Sprint to construct and log a message using the DefaultLogger.
Panicf uses the fmt.Sprintf to log a templated message using the DefaultLogger.
Panicw logs a message with some additional context using the DefaultLogger.
Warn uses the fmt.Sprint to construct and log a message using the DefaultLogger.
Warnf uses the fmt.Sprintf to log a templated message using the DefaultLogger.
Warnw logs a message with some additional context using the DefaultLogger.
WithContext sets the context of the logger.
WithLogLevel sets the log level.
WithOutputFile sets the output file path.
WithWriteSyncer is a low level API which sets the underlying WriteSyncer by providing a zapcore.WriterSyncer, which has high priority than WithOutputFile.

# Variables

DefaultLogger is the default logger, which logs message to stderr and with the minimal level "warn".

# Structs

Logger is a log object, which exposes standard APIs like errorf, error, warn, warnf and etcd.

# Interfaces

Option configures how to set up logger.