log

package
v1.8.3 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Component = &Log{}

Functions

func BuildLogLine

func BuildLogLine(format string, params map[string]string) string

Types

type Log

type Log struct{}

func (*Log) ConfigEntry

func (log *Log) ConfigEntry() string

func (*Log) Handler

func (log *Log) Handler(handler http.HandlerFunc) http.HandlerFunc

func (*Log) NeedHandler

func (log *Log) NeedHandler() bool

func (*Log) Start

func (log *Log) Start()

func (*Log) StartHost added in v1.5.1

func (log *Log) StartHost(host *config.Host)

func (*Log) UnmarshalConfig

func (log *Log) UnmarshalConfig() error

type LogConfig

type LogConfig struct {
	Enabled     bool   `json:"enabled"`
	Pages       string `json:"pages"`
	PagesFormat string `json:"pagesformat"`
	Errors      string `json:"errors"`
	Sys         string `json:"sys"`
	Server      string `json:"server"`
	Stats       string `json:"stats"`
	Status      int
}

Jump to

Keyboard shortcuts

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