Documentation ¶
Index ¶
- func Audit(format string, a ...interface{})
- func Auditing() bool
- func Debugf(format string, a ...interface{})
- func Errorf(format string, a ...interface{})
- func Healthf(format string, a ...interface{})
- func Infof(format string, a ...interface{})
- func Init(level Level, location string) error
- func InitAudit(location string) error
- func SetLevel(level Level)
- func StackTrace() []byte
- func Warnf(format string, a ...interface{})
- type Level
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetLevel ¶
func SetLevel(level Level)
SetLevel sets the current log level. It is safe to call this function from multiple goroutines.
func StackTrace ¶
func StackTrace() []byte
StackTrace formats a stack trace of the calling goroutine.
Types ¶
type Level ¶
type Level int32
func (*Level) Set ¶
Set implements the flag.Value.Set method. This allows the Level type to be parsed by the flag package.
func (Level) String ¶
String returns the string representation of the Level. It's implemented to satisify the Stringer and flag.Value interfaces.
func (*Level) UnmarshalText ¶
UnmarshalText implements the encoding.TextUnmarshaler interface. This allows the log level to be unmarshaled by the configuration parser.
Click to show internal directories.
Click to hide internal directories.