Documentation
¶
Index ¶
- Variables
- func Any(key string, value interface{}) zapcore.Field
- func Bool(key string, val bool) zapcore.Field
- func ByteString(key string, val []byte) zapcore.Field
- func DevelopmentTimeEncoder(t time.Time, enc zapcore.PrimitiveArrayEncoder)
- func Duration(key string, val time.Duration) zapcore.Field
- func Error(err error) zapcore.Field
- func InitLogger()
- func Int(key string, val int) zapcore.Field
- func NamedError(key string, err error) zapcore.Field
- func NewLoggingResponseWriter(w http.ResponseWriter) *loggingResponseWriter
- func Object(key string, val zapcore.ObjectMarshaler) zapcore.Field
- func RequestLoggingHandler(next http.Handler) http.Handler
- func Skip() zapcore.Field
- func String(key string, val string) zapcore.Field
- func Stringer(key string, val fmt.Stringer) zapcore.Field
- func Time(key string, val time.Time) zapcore.Field
Constants ¶
This section is empty.
Variables ¶
View Source
var Log *zap.Logger
Functions ¶
func DevelopmentTimeEncoder ¶
func DevelopmentTimeEncoder(t time.Time, enc zapcore.PrimitiveArrayEncoder)
func InitLogger ¶
func InitLogger()
func NewLoggingResponseWriter ¶
func NewLoggingResponseWriter(w http.ResponseWriter) *loggingResponseWriter
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.