Documentation ¶
Index ¶
- Constants
- func AddTracer(ctx context.Context) context.Context
- func Critical(msg string)
- func Criticalf(things ...interface{})
- func Debug(msg string)
- func DebugTrace(ctx context.Context, msg string) (ok bool)
- func DebugTracef(ctx context.Context, things ...interface{}) (ok bool)
- func Debugf(things ...interface{})
- func Error(msg string)
- func ErrorTrace(ctx context.Context, msg string) (ok bool)
- func ErrorTracef(ctx context.Context, things ...interface{}) (ok bool)
- func Errorf(things ...interface{})
- func Info(msg string)
- func InfoTrace(ctx context.Context, msg string) (ok bool)
- func InfoTracef(ctx context.Context, things ...interface{}) (ok bool)
- func Infof(things ...interface{})
- func ParseLevel(level string) severity
- func SetFileLevels(levels map[string]severity)
- func SetLogLevel(level severity)
- func Shutdown()
- func Start() (err error)
- func Test(msg string)
- func Testf(things ...interface{})
- func Trace(msg string)
- func Tracef(things ...interface{})
- func UnSetFileLevels()
- func Warning(msg string)
- func WarningTrace(ctx context.Context, msg string) (ok bool)
- func WarningTracef(ctx context.Context, things ...interface{}) (ok bool)
- func Warningf(things ...interface{})
- type Action
- type ContextTracer
- func (ct *ContextTracer) Error(msg string) (ok bool)
- func (ct *ContextTracer) Errorf(things ...interface{}) (ok bool)
- func (ct *ContextTracer) Trace(msg string) (ok bool)
- func (ct *ContextTracer) Tracef(things ...interface{}) (ok bool)
- func (ct *ContextTracer) Warning(msg string) (ok bool)
- func (ct *ContextTracer) Warningf(things ...interface{}) (ok bool)
- type ContextTracerKey
Constants ¶
View Source
const ( TraceLevel severity = 1 DebugLevel severity = 2 InfoLevel severity = 3 WarningLevel severity = 4 ErrorLevel severity = 5 CriticalLevel severity = 6 )
Variables ¶
This section is empty.
Functions ¶
func DebugTracef ¶
func ErrorTracef ¶
func InfoTracef ¶
func ParseLevel ¶
func ParseLevel(level string) severity
func SetFileLevels ¶
func SetFileLevels(levels map[string]severity)
func SetLogLevel ¶
func SetLogLevel(level severity)
func UnSetFileLevels ¶
func UnSetFileLevels()
func WarningTracef ¶
Types ¶
type ContextTracer ¶
func Tracer ¶
func Tracer(ctx context.Context) *ContextTracer
func (*ContextTracer) Error ¶
func (ct *ContextTracer) Error(msg string) (ok bool)
func (*ContextTracer) Errorf ¶
func (ct *ContextTracer) Errorf(things ...interface{}) (ok bool)
func (*ContextTracer) Trace ¶
func (ct *ContextTracer) Trace(msg string) (ok bool)
func (*ContextTracer) Tracef ¶
func (ct *ContextTracer) Tracef(things ...interface{}) (ok bool)
func (*ContextTracer) Warning ¶
func (ct *ContextTracer) Warning(msg string) (ok bool)
func (*ContextTracer) Warningf ¶
func (ct *ContextTracer) Warningf(things ...interface{}) (ok bool)
Click to show internal directories.
Click to hide internal directories.