log

package
v0.0.0-...-e571af8 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Alarm

func Alarm(template string, args ...interface{})

func Debug

func Debug(template string, args ...interface{})

func Event

func Event(template string, args ...interface{})

func Info

func Info(template string, args ...interface{})

func Trace

func Trace(args ...interface{})

Types

type Configuration

type Configuration struct {
	TraceEnabled bool   `default:"false"`
	DebugEnabled bool   `default:"true"`
	PodName      string `envconfig:"POD_NAME"`
	PodIP        string `envconfig:"POD_IP"`
}

func Config

func Config() *Configuration

type Log

type Log struct {
	Level     string
	Timestamp time.Time
	Process   string
	Function  string
	File      string
	Line      int
}

func NewLog

func NewLog(level string, offset int) *Log

func (*Log) Emit

func (l *Log) Emit(template string, args ...interface{})

Jump to

Keyboard shortcuts

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