Documentation ¶ Overview ¶ Package logger contains a logger for use by other job-manager packages. Index ¶ func RequestLogFromContext(ctx context.Context) *zerolog.Event type Logger func FromContext(ctx context.Context) *Logger func New(out io.Writer, useJSON, debug bool) *Logger func (l *Logger) Middleware(next http.Handler) http.Handler Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func RequestLogFromContext ¶ func RequestLogFromContext(ctx context.Context) *zerolog.Event Types ¶ type Logger ¶ type Logger struct { zerolog.Logger Disabled bool } func FromContext ¶ func FromContext(ctx context.Context) *Logger func New ¶ func New(out io.Writer, useJSON, debug bool) *Logger func (*Logger) Middleware ¶ func (l *Logger) Middleware(next http.Handler) http.Handler Source Files ¶ View all Source files logger.go Click to show internal directories. Click to hide internal directories.