logger

package
v0.4.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 21, 2022 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Overview

Package logger contains a logger for use by other job-manager packages.

Index

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL