Documentation
¶
Index ¶
- Constants
- func StdOut()
- type BTHandle
- type Context
- type LogMessage
- type Logger
- func (l *Logger) Error(ctx context.Context, s string, i ...interface{})
- func (l *Logger) Info(ctx context.Context, s string, i ...interface{})
- func (l *Logger) Log(c context.Context, msg string)
- func (l *Logger) LogMode(level logger.LogLevel) logger.Interface
- func (l *Logger) Print(v ...interface{})
- func (l *Logger) Trace(ctx context.Context, begin time.Time, fc func() (string, int64), err error)
- func (l *Logger) Warn(ctx context.Context, s string, i ...interface{})
Constants ¶
View Source
const ( Splunk = 1 << iota Stdout )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type LogMessage ¶
type LogMessage struct {
Method string `json:"_method"`
Message string `json:"msg"`
From string `json:"_from"`
Ms int `json:"_ms"`
UserId int `json:"_userId"`
Name string `json:"name"`
Pid int `json:"pid"`
TraceId string `json:"traceId"`
ReqUrl string `json:"req_url"`
Severity string `json:"severity"`
Type string `json:"type"`
Host string `json:"host"`
}
Click to show internal directories.
Click to hide internal directories.