serverlog

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LogFile *os.File

Functions

func Close

func Close()

func Debugf

func Debugf(format string, args ...any)

func Errorf

func Errorf(format string, args ...any)

func Infof

func Infof(format string, args ...any)

func InitLogToFile

func InitLogToFile(enabled bool, level string) error

func SetLevel

func SetLevel(level string)

func Warnf

func Warnf(format string, args ...any)

Types

type Level

type Level int
const (
	Debug Level = iota
	Info
	Warn
	Error
)

Jump to

Keyboard shortcuts

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