stdlog

package
v1.2.19 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

global config

global func

global var

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(v ...any)

Debug color: purple

func DebugF

func DebugF(format string, v ...any)

func DebugW

func DebugW(message string, kv ...any)

func Error

func Error(v ...any)

Error color: red

func ErrorF

func ErrorF(format string, v ...any)

func ErrorW

func ErrorW(message string, kv ...any)

func Fatal

func Fatal(v ...any)

Fatal color: red

func FatalF

func FatalF(format string, v ...any)

func FatalW

func FatalW(message string, kv ...any)

func Get added in v1.1.7

func Get() *log.Logger

func Info

func Info(v ...any)

Info color: green

func InfoF

func InfoF(format string, v ...any)

func InfoW

func InfoW(message string, kv ...any)

func Init added in v1.1.5

func Init()

func Panic

func Panic(v ...any)

Panic color: red

func PanicF

func PanicF(format string, v ...any)

func PanicW

func PanicW(message string, kv ...any)

func Stream added in v1.1.3

func Stream() jsonmessage.Stream

func Warn

func Warn(v ...any)

Warn color: yellow

func WarnF

func WarnF(format string, v ...any)

func WarnW

func WarnW(message string, kv ...any)

Types

type ConfigOption added in v1.1.5

type ConfigOption struct {
	sync.Once
	// contains filtered or unexported fields
}

func New added in v1.1.5

func New() *ConfigOption

func (*ConfigOption) Load added in v1.1.5

func (o *ConfigOption) Load()

func (*ConfigOption) WithCallerLongFile added in v1.1.5

func (o *ConfigOption) WithCallerLongFile() *ConfigOption

func (*ConfigOption) WithCallerShortFile added in v1.1.5

func (o *ConfigOption) WithCallerShortFile() *ConfigOption

func (*ConfigOption) WithLogPath added in v1.1.5

func (o *ConfigOption) WithLogPath(logPath string) *ConfigOption

func (*ConfigOption) WithTimeMicroSeconds added in v1.1.5

func (o *ConfigOption) WithTimeMicroSeconds() *ConfigOption

func (*ConfigOption) WithTimeUTC added in v1.1.5

func (o *ConfigOption) WithTimeUTC() *ConfigOption

Jump to

Keyboard shortcuts

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