log

package
v0.5.23 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2024 License: Apache-2.0 Imports: 11 Imported by: 24

Documentation

Index

Constants

View Source
const (
	LevelError string = "error"
	LevelWarn  string = "warn"
	LevelInfo  string = "info"
	LevelDebug string = "debug"
	LevelTrace string = "trace"
)
View Source
const (
	FormatPretty string = "pretty"
	FormatText   string = "text"
	FormatJson   string = "json"
)
View Source
const (
	OutputStderr string = "stderr"
	OutputStdout string = "stdout"
	OutputFile   string = "file"
)
View Source
const (
	StandardTimestampFormat = "2006-01-02T15:04:05.000"
	DefaultTimestampFormat  = "20060102-150405.00"
)

Variables

View Source
var (
	DefaultLogPath = os.TempDir() + string(os.PathSeparator) + "cdk.log"
)

Functions

func DebugDF

func DebugDF(depth int, format string, argv ...interface{})

func DebugF

func DebugF(format string, argv ...interface{})

func DidFakeExit

func DidFakeExit() bool

func DoWithFakeIO

func DoWithFakeIO(fn func() error) (string, bool, error)

func Error

func Error(err error)

func ErrorDF

func ErrorDF(depth int, format string, argv ...interface{})

func ErrorF

func ErrorF(format string, argv ...interface{})

func Exit

func Exit(code int)

func FakeExiting

func FakeExiting()

func Fatal

func Fatal(err error)

func FatalDF

func FatalDF(depth int, format string, argv ...interface{})

func FatalF

func FatalF(format string, argv ...interface{})

func GetExitFunc

func GetExitFunc() func(int)

func GetLastFakeIO

func GetLastFakeIO() (string, int, error)

func GetLevel

func GetLevel() string

func InfoDF

func InfoDF(depth int, format string, argv ...interface{})

func InfoF

func InfoF(format string, argv ...interface{})

func Panic

func Panic(err error)

func PanicDF

func PanicDF(depth int, format string, argv ...interface{})

func PanicF

func PanicF(format string, argv ...interface{})

func ResetFakeExited

func ResetFakeExited()

func RestoreExiting

func RestoreExiting()

func SetExitFunc

func SetExitFunc(fn func(int))

func StartRestart

func StartRestart() error

func Stop

func Stop() error

func TraceDF

func TraceDF(depth int, format string, argv ...interface{})

func TraceF

func TraceF(format string, argv ...interface{})

func WarnDF

func WarnDF(depth int, format string, argv ...interface{})

func WarnF

func WarnF(format string, argv ...interface{})

Types

This section is empty.

Jump to

Keyboard shortcuts

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