log

package
v0.0.0-...-37acc3e Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(fmt string, v ...interface{})

func Error

func Error(fmt string, v ...interface{})

func Info

func Info(fmt string, v ...interface{})

func SetFormat

func SetFormat(format string)

func SetLevel

func SetLevel(lvl string)

func Warn

func Warn(fmt string, v ...interface{})

Types

type Config

type Config struct {
	Level  string
	Format string
}

type Logger

type Logger struct {
	// contains filtered or unexported fields
}

func New

func New(cfg *Config) *Logger

func (*Logger) Debug

func (l *Logger) Debug(fmt string, v ...interface{})

func (*Logger) Error

func (l *Logger) Error(fmt string, v ...interface{})

func (*Logger) Info

func (l *Logger) Info(fmt string, v ...interface{})

func (*Logger) SetFormat

func (l *Logger) SetFormat(format string)

func (*Logger) SetLevel

func (l *Logger) SetLevel(lvl string)

func (*Logger) Warn

func (l *Logger) Warn(fmt string, v ...interface{})

Jump to

Keyboard shortcuts

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