Documentation
¶
Index ¶
- Constants
- Variables
- func Backtrace(size int) []string
- func Darwin() bool
- func Debug(arg string)
- func Debugf(msg string, args ...interface{})
- func DumpProcessTrace()
- func EnsureChildShutdown(cmd *exec.Cmd, sig int)
- func Error(msg string, err error)
- func FileExists(path string) (bool, error)
- func Info(arg string)
- func Infof(msg string, args ...interface{})
- func InitLogger(level string)
- func MemoryUsage() string
- func Nows() string
- func ParseTime(str string) (time.Time, error)
- func RandomJid() string
- func Retryable(name string, count int, fn func() error) error
- func Thens(tim time.Time) string
- func Warn(arg string)
- func Warnf(msg string, args ...interface{})
- type Level
Constants ¶
View Source
const ( SIGHUP = 0x1 SIGINT = 0x2 SIGQUIT = 0x3 SIGTERM = 0xF )
View Source
const (
TimeFormat = "2006-01-02T15:04:05.000Z"
)
View Source
const ( // This is the canonical timestamp format used by Faktory. // Always UTC, lexigraphically sortable. This is the best // timestamp format, accept no others. TimestampFormat = time.RFC3339Nano )
Variables ¶
View Source
var ( LogInfo = false LogDebug = false )
Functions ¶
func Backtrace ¶
Backtrace gathers a backtrace for the caller. Return a slice of up to N stack frames.
func Debugf ¶
func Debugf(msg string, args ...interface{})
Verbosity level helps track down production issues:
-l debug
func DumpProcessTrace ¶ added in v1.5.0
func DumpProcessTrace()
func EnsureChildShutdown ¶ added in v1.5.0
func InitLogger ¶
func InitLogger(level string)
func MemoryUsage ¶ added in v1.5.0
func MemoryUsage() string
Types ¶
Click to show internal directories.
Click to hide internal directories.