Documentation
¶
Index ¶
- func Factory() *factory
- func NewTestLog() log.Log
- type TestLog
- type TestLogWriter
- func (r *TestLogWriter) Code(code string) log.Writer
- func (r *TestLogWriter) Debug(args ...any)
- func (r *TestLogWriter) Debugf(format string, args ...any)
- func (r *TestLogWriter) Error(args ...any)
- func (r *TestLogWriter) Errorf(format string, args ...any)
- func (r *TestLogWriter) Fatal(args ...any)
- func (r *TestLogWriter) Fatalf(format string, args ...any)
- func (r *TestLogWriter) Hint(hint string) log.Writer
- func (r *TestLogWriter) In(domain string) log.Writer
- func (r *TestLogWriter) Info(args ...any)
- func (r *TestLogWriter) Infof(format string, args ...any)
- func (r *TestLogWriter) Owner(owner any) log.Writer
- func (r *TestLogWriter) Panic(args ...any)
- func (r *TestLogWriter) Panicf(format string, args ...any)
- func (r *TestLogWriter) Request(req http.ContextRequest) log.Writer
- func (r *TestLogWriter) Response(res http.ContextResponse) log.Writer
- func (r *TestLogWriter) Tags(tags ...string) log.Writer
- func (r *TestLogWriter) User(user any) log.Writer
- func (r *TestLogWriter) Warning(args ...any)
- func (r *TestLogWriter) Warningf(format string, args ...any)
- func (r *TestLogWriter) With(data map[string]any) log.Writer
- func (r *TestLogWriter) WithTrace() log.Writer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTestLog ¶ added in v1.12.0
Types ¶
type TestLog ¶ added in v1.12.0
type TestLog struct {
*TestLogWriter
}
type TestLogWriter ¶ added in v1.13.5
type TestLogWriter struct {
// contains filtered or unexported fields
}
func NewTestLogWriter ¶ added in v1.13.5
func NewTestLogWriter() *TestLogWriter
func (*TestLogWriter) Debug ¶ added in v1.13.5
func (r *TestLogWriter) Debug(args ...any)
func (*TestLogWriter) Debugf ¶ added in v1.13.5
func (r *TestLogWriter) Debugf(format string, args ...any)
func (*TestLogWriter) Error ¶ added in v1.13.5
func (r *TestLogWriter) Error(args ...any)
func (*TestLogWriter) Errorf ¶ added in v1.13.5
func (r *TestLogWriter) Errorf(format string, args ...any)
func (*TestLogWriter) Fatal ¶ added in v1.13.5
func (r *TestLogWriter) Fatal(args ...any)
func (*TestLogWriter) Fatalf ¶ added in v1.13.5
func (r *TestLogWriter) Fatalf(format string, args ...any)
func (*TestLogWriter) Info ¶ added in v1.13.5
func (r *TestLogWriter) Info(args ...any)
func (*TestLogWriter) Infof ¶ added in v1.13.5
func (r *TestLogWriter) Infof(format string, args ...any)
func (*TestLogWriter) Panic ¶ added in v1.13.5
func (r *TestLogWriter) Panic(args ...any)
func (*TestLogWriter) Panicf ¶ added in v1.13.5
func (r *TestLogWriter) Panicf(format string, args ...any)
func (*TestLogWriter) Request ¶ added in v1.13.5
func (r *TestLogWriter) Request(req http.ContextRequest) log.Writer
func (*TestLogWriter) Response ¶ added in v1.13.5
func (r *TestLogWriter) Response(res http.ContextResponse) log.Writer
func (*TestLogWriter) Tags ¶ added in v1.13.5
func (r *TestLogWriter) Tags(tags ...string) log.Writer
func (*TestLogWriter) Warning ¶ added in v1.13.5
func (r *TestLogWriter) Warning(args ...any)
func (*TestLogWriter) Warningf ¶ added in v1.13.5
func (r *TestLogWriter) Warningf(format string, args ...any)
func (*TestLogWriter) With ¶ added in v1.13.5
func (r *TestLogWriter) With(data map[string]any) log.Writer
func (*TestLogWriter) WithTrace ¶ added in v1.14.0
func (r *TestLogWriter) WithTrace() log.Writer
Click to show internal directories.
Click to hide internal directories.