logger

package
v1.4.8 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2023 License: MIT Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AccessLogFile = ""
View Source
var ErrorLogFile = ""
View Source
var RollBarEnabled = false
View Source
var RollBarSkipErrors = RollBarErrors{}

Functions

func LogError added in v1.3.2

func LogError(format string, a ...any)

func LogInfo added in v1.3.2

func LogInfo(format string, a ...any)

func LogInternalError added in v1.0.9

func LogInternalError(err error)

func LogRequests

func LogRequests(handler http.Handler) http.Handler

Types

type ResponseWriter

type ResponseWriter struct {
	http.ResponseWriter
	Content []byte
	Size    int
	Status  int
}

func (*ResponseWriter) Hijack added in v1.3.1

func (w *ResponseWriter) Hijack() (net.Conn, *bufio.ReadWriter, error)

func (*ResponseWriter) Write added in v1.0.7

func (w *ResponseWriter) Write(b []byte) (int, error)

func (*ResponseWriter) WriteHeader

func (w *ResponseWriter) WriteHeader(status int)

type RollBarErrors added in v1.1.5

type RollBarErrors []string

type RollBarStatusCodes added in v1.1.3

type RollBarStatusCodes []int

Jump to

Keyboard shortcuts

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