Documentation ¶
Overview ¶
Package log is a simple logger which prints to stderr, and will later integrate with the spore IPC. This library is intended to be dot-imported and names are meant to not clash with local namespace
Index ¶
- func Caller(comment string, skip int) string
- func Check(err error) bool
- func Debug(a ...interface{})
- func Debugc(printer func() string)
- func Debugf(format string, a ...interface{})
- func DisableTTYLogging()
- func EnableTTYLogging()
- func Error(a ...interface{})
- func Errorc(printer func() string)
- func Errorf(format string, a ...interface{})
- func Fatal(a ...interface{})
- func Fatalc(printer func() string)
- func Fatalf(format string, a ...interface{})
- func Info(a ...interface{})
- func Infoc(printer func() string)
- func Infof(format string, a ...interface{})
- func SetLogLevel(level string)
- func SetPipeWriter(p io.WriteCloser)
- func Trace(a ...interface{})
- func Tracec(printer func() string)
- func Tracef(format string, a ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnableTTYLogging ¶
func EnableTTYLogging()
EnableTTYLogging sets the tty logging to go to stderr
func SetPipeWriter ¶
func SetPipeWriter(p io.WriteCloser)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.