log

package
v1.3.7 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2024 License: LGPL-2.1 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Logger = *log.New()

Functions

func Initialize added in v1.3.2

func Initialize(level string)

Types

type CustomFormatter added in v1.3.5

type CustomFormatter struct {
	FullTimestamp bool
	ForceColors   bool
	Prefix        string
}

func (*CustomFormatter) Format added in v1.3.5

func (f *CustomFormatter) Format(entry *log.Entry) ([]byte, error)

type PrefixFormatter added in v1.3.5

type PrefixFormatter struct {
	Prefix    string
	Formatter log.Formatter
}

func (*PrefixFormatter) Format added in v1.3.5

func (p *PrefixFormatter) Format(entry *log.Entry) ([]byte, error)

Jump to

Keyboard shortcuts

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