logging

package
v1.0.18 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2023 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Close

func Close()

Types

type LogType

type LogType string
const (
	Access LogType = LogType("access")
	Error  LogType = LogType("error")
)

type Logger

type Logger struct {
	Writer io.Writer
	// contains filtered or unexported fields
}

func GetLogger

func GetLogger(logType LogType) *Logger

func (*Logger) Log

func (l *Logger) Log(function interface{}, format string)

Pass the function itself to the logger

func (*Logger) Logf

func (l *Logger) Logf(function interface{}, format string, args ...interface{})

func (*Logger) Relay

func (l *Logger) Relay()

Jump to

Keyboard shortcuts

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