Documentation ¶
Index ¶
- Constants
- Variables
- func DebugDF(depth int, format string, argv ...interface{})
- func DebugF(format string, argv ...interface{})
- func DidFakeExit() bool
- func DoWithFakeIO(fn func() error) (string, bool, error)
- func Error(err error)
- func ErrorDF(depth int, format string, argv ...interface{})
- func ErrorF(format string, argv ...interface{})
- func Exit(code int)
- func FakeExiting()
- func Fatal(err error)
- func FatalDF(depth int, format string, argv ...interface{})
- func FatalF(format string, argv ...interface{})
- func GetExitFunc() func(int)
- func GetLastFakeIO() (string, int, error)
- func GetLevel() string
- func InfoDF(depth int, format string, argv ...interface{})
- func InfoF(format string, argv ...interface{})
- func Panic(err error)
- func PanicDF(depth int, format string, argv ...interface{})
- func PanicF(format string, argv ...interface{})
- func ResetFakeExited()
- func RestoreExiting()
- func SetExitFunc(fn func(int))
- func StartRestart() error
- func Stop() error
- func TraceDF(depth int, format string, argv ...interface{})
- func TraceF(format string, argv ...interface{})
- func WarnDF(depth int, format string, argv ...interface{})
- func WarnF(format string, argv ...interface{})
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"
)
View Source
var LogLevels = []string{ LevelError, LevelWarn, LevelInfo, LevelDebug, LevelTrace, }
Functions ¶
func DidFakeExit ¶
func DidFakeExit() bool
func FakeExiting ¶
func FakeExiting()
func GetExitFunc ¶
func GetExitFunc() func(int)
func GetLastFakeIO ¶
func ResetFakeExited ¶
func ResetFakeExited()
func RestoreExiting ¶
func RestoreExiting()
func SetExitFunc ¶
func SetExitFunc(fn func(int))
func StartRestart ¶
func StartRestart() error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.