Documentation ¶
Index ¶
- func AccessLogger(f http.Handler) http.Handler
- func Caller(skip int) gostack.Field
- func ContextLogger(r *http.Request) gostack.Logger
- func Duration(key string, val time.Duration) gostack.Field
- func Error(val error) gostack.Field
- func Hex(key string, val []byte) gostack.Field
- func Int(key string, val int) gostack.Field
- func LogPanic(handler http.Handler) http.Handler
- func LogWithCtx(LOG gostack.Logger, fields ...zapcore.Field) gostack.Logger
- func NamedCaller(name string, skip int) gostack.Field
- func NewDevelopmentLogger(opts ...gostack.Option) (gostack.Logger, error)
- func NewProductionLogger(opts ...gostack.Option) (gostack.Logger, error)
- func String(key string, val string) gostack.Field
- func Stringer(key string, val fmt.Stringer) gostack.Field
- func WithRequestLogger(lFac RequestLoggerFactory) gostack.Middleware
- type RequestLoggerFactory
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContextLogger ¶ added in v0.0.37
func LogWithCtx ¶ added in v0.0.37
func NamedCaller ¶ added in v0.0.37
func NewDevelopmentLogger ¶ added in v0.0.37
func NewDevelopmentLogger(opts ...gostack.Option) (gostack.Logger, error)
func NewProductionLogger ¶ added in v0.0.37
func NewProductionLogger(opts ...gostack.Option) (gostack.Logger, error)
func WithRequestLogger ¶ added in v0.0.37
func WithRequestLogger(lFac RequestLoggerFactory) gostack.Middleware
Types ¶
type RequestLoggerFactory ¶ added in v0.0.37
func DefaultRequestContextFactory ¶ added in v0.0.37
func DefaultRequestContextFactory(l gostack.Logger) RequestLoggerFactory
Click to show internal directories.
Click to hide internal directories.