Documentation ¶
Index ¶
Constants ¶
View Source
const ( RemoteIPField = "remote_ip" TimeField = "time" HostField = "host" RequestField = "request" UserAgentField = "user_agent" StatusField = "status" SizeField = "size" RequestIDField = "request_id" )
View Source
const ( HeaderVcapRequestID = "X-Vcap-Request-Id" MaxSizeLimit = 255 )
Variables ¶
This section is empty.
Functions ¶
func FromContext ¶
func NewEchoZapLogger ¶
ZapLogger is a middleware and zap to provide an "access log" like logging for each request.
func NewTimingMiddleware ¶
func NewTimingMiddleware() echo.MiddlewareFunc
func NewVcapRequestID ¶
func NewVcapRequestID() echo.MiddlewareFunc
func Setup ¶
func Setup(config *config.CfAPIConfig) error
Types ¶
type BoilLogger ¶
type BoilLogger struct { RedactParams bool // contains filtered or unexported fields }
func NewBoilLogger ¶
func NewBoilLogger(redactParams bool, logger *zap.Logger) *BoilLogger
Source Files ¶
Click to show internal directories.
Click to hide internal directories.