logtastic

package
v0.0.0-...-045a9eb Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2025 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Server     = ""
	ApiKey     = ""
	LogDir     = ""
	BuildHash  = ""
	FileLogs   *filerotate.File
	FileErrors *siserlogger.File
	FileEvents *siserlogger.File
	FileHits   *siserlogger.File
)

Functions

func CheckServerAlive

func CheckServerAlive(server string) error

func HandleEvent

func HandleEvent(w http.ResponseWriter, r *http.Request)

func Log

func Log(s string)

func LogError

func LogError(r *http.Request, s string)

TODO: send callstack as a separate field TODO: send server build hash so we can auto-link callstack lines to source code on github

func LogEvent

func LogEvent(r *http.Request, m map[string]interface{})

func LogHit

func LogHit(r *http.Request, code int, size int64, dur time.Duration)

func Stop

func Stop()

Types

This section is empty.

Jump to

Keyboard shortcuts

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