logger

package
v0.0.0-...-7a5fecb Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (

	// RFC3339Milli is the logger time format.
	RFC3339Milli = "2006-01-02T15:04:05.999Z07:00"
)

Variables

This section is empty.

Functions

func Debug

func Debug(args string)

func Debugf

func Debugf(fmt string, args ...interface{})

func Error

func Error(args string)

func Errorf

func Errorf(fmt string, args ...interface{})

func Fatal

func Fatal(args string)

func Fatalf

func Fatalf(fmt string, args ...interface{})

func Info

func Info(args string)

func Infof

func Infof(fmt string, args ...interface{})

func Init

func Init(config *Config)

Init initializes logger.

func Panic

func Panic(args string)

func Panicf

func Panicf(fmt string, args ...interface{})

func Warn

func Warn(args string)

func Warnf

func Warnf(fmt string, args ...interface{})

Types

type Config

type Config struct {
	// SystemLogfilePath is the path of logfile,
	// if it is empty, it would be ./logs/containeragent.log
	SystemLogfilePath string
	// Debug specifies the lowest log level is Debug if true,
	// otherwise Info is the one.
	Debug bool
	// contains filtered or unexported fields
}

Config is logger config.

Jump to

Keyboard shortcuts

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