logging

package
v0.0.0-...-b288cfe Latest Latest
Warning

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

Go to latest
Published: May 19, 2024 License: GPL-3.0 Imports: 6 Imported by: 3

Documentation

Index

Constants

View Source
const (
	LOG_ENTRY_NONE LOG_ENTRY = iota
	LOG_ENTRY_ERROR
	LOG_ENTRY_WARNING
	LOG_ENTRY_INFO
	LOG_ENTRY_ACCESS
	LOG_ENTRY_TIMES
	LOG_ENTRY_SLOW
	LOG_ENTRY_DEBUG

	LOG_DEFAULT_ERROR  bool = true
	LOG_DEFAULT_ACCESS bool = false
	LOG_DEFAULT_DEBUG  bool = false
	LOG_DEFAULT_TIMES  bool = false
)

Variables

This section is empty.

Functions

This section is empty.

Types

type LOG_ENTRY

type LOG_ENTRY int

type Logging

type Logging struct {
	Config *LoggingConfig
}

func New

func New() *Logging

func (*Logging) Log

func (o *Logging) Log(LogType LOG_ENTRY, Location string, Format string, a ...any) error

type LoggingConfig

type LoggingConfig struct {
	LogAccess bool `json:"logAccess"`
	LogDebug  bool `json:"logDebug"`
	LogTimes  bool `json:"logTimes"`
	// contains filtered or unexported fields
}

func NewConfig

func NewConfig() *LoggingConfig

func (*LoggingConfig) Read

func (o *LoggingConfig) Read()

Jump to

Keyboard shortcuts

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