Documentation ¶
Index ¶
- Variables
- type Entry
- type Error
- type Log
- type Report
- func (rep *Report) Debug(msg string, fields ...zap.Field)
- func (rep *Report) Error(msg string, fields ...zap.Field)
- func (rep *Report) HasError() bool
- func (rep *Report) Info(msg string, fields ...zap.Field)
- func (rep *Report) Warn(msg string, fields ...zap.Field)
- func (rep *Report) WithError(token string, err error) *Report
- func (rep *Report) Wrap(token string, err error, msg string) *Report
- func (rep *Report) Wrapf(token string, err error, msg string, args ...interface{}) *Report
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNoReport = errors.New("no report")
)
errors
Functions ¶
This section is empty.
Types ¶
type Entry ¶
type Entry struct { Timestamp time.Time `json:"ts"` Level zapcore.Level `json:"lvl"` Message string `json:"msg"` Fields []zap.Field `json:"fs"` }
Entry represents a single Log entry of the report
Click to show internal directories.
Click to hide internal directories.