logging

package
v0.0.0-...-a677d05 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2024 License: BSD-3-Clause Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger struct{ zerolog.Logger }

func New

func New(level zerolog.Level, withTimestamp bool) *Logger

func NewDevelopmentLogger

func NewDevelopmentLogger(level zerolog.Level, withTimestamp bool) *Logger

func NewProductionLogger

func NewProductionLogger(level zerolog.Level, withTimestamp bool) *Logger

func (*Logger) LogAccess

func (l *Logger) LogAccess(_ context.Context, det accesslog.Details, req *http.Request)

LogAccess is part of the accesslog.Logger interface.

func (*Logger) LogBuildInfo

func (l *Logger) LogBuildInfo(bld *buildinfo.BuildInfo, modules ...string)

func (*Logger) LogClientRequest

func (l *Logger) LogClientRequest(_ context.Context, name, url string, shared bool)

LogClientRequest is part of the youlessclient.Logger interface.

func (*Logger) LogFetchAuthCookie

func (l *Logger) LogFetchAuthCookie(name string, cookie http.Cookie)

LogFetchAuthCookie is part of the youlessclient.Logger interface.

func (*Logger) LogHealthChanged

func (l *Logger) LogHealthChanged(status, oldStatus healthcheck.Status, statuses map[string]healthcheck.Status)

LogHealthChanged is part of the healthcheck.Logger interface.

func (*Logger) LogRegisterRoute

func (l *Logger) LogRegisterRoute(route serv.Route)

func (*Logger) LogServerClose

func (l *Logger) LogServerClose(name string)

LogServerClose is part of the serv.Logger interface.

func (*Logger) LogServerShutdown

func (l *Logger) LogServerShutdown(name string)

LogServerShutdown is part of the serv.Logger interface.

func (*Logger) LogServerStart

func (l *Logger) LogServerStart(name, addr string)

LogServerStart is part of the serv.Logger interface.

func (*Logger) LogServerStartTLS

func (l *Logger) LogServerStartTLS(name, addr, certFile, keyFile string)

LogServerStartTLS is part of the serv.Logger interface.

Jump to

Keyboard shortcuts

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