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 ¶
Types ¶
type TestLog ¶
type TestLog struct {
*TestLogWriter
}
type TestLogWriter ¶
type TestLogWriter struct {
// contains filtered or unexported fields
}
func NewTestLogWriter ¶
func NewTestLogWriter() *TestLogWriter
func (*TestLogWriter) Debug ¶
func (r *TestLogWriter) Debug(args ...any)
func (*TestLogWriter) Debugf ¶
func (r *TestLogWriter) Debugf(format string, args ...any)
func (*TestLogWriter) Error ¶
func (r *TestLogWriter) Error(args ...any)
func (*TestLogWriter) Errorf ¶
func (r *TestLogWriter) Errorf(format string, args ...any)
func (*TestLogWriter) Fatal ¶
func (r *TestLogWriter) Fatal(args ...any)
func (*TestLogWriter) Fatalf ¶
func (r *TestLogWriter) Fatalf(format string, args ...any)
func (*TestLogWriter) Info ¶
func (r *TestLogWriter) Info(args ...any)
func (*TestLogWriter) Infof ¶
func (r *TestLogWriter) Infof(format string, args ...any)
func (*TestLogWriter) Panic ¶
func (r *TestLogWriter) Panic(args ...any)
func (*TestLogWriter) Panicf ¶
func (r *TestLogWriter) Panicf(format string, args ...any)
func (*TestLogWriter) Request ¶
func (r *TestLogWriter) Request(req http.ContextRequest) log.Writer
func (*TestLogWriter) Response ¶
func (r *TestLogWriter) Response(res http.ContextResponse) log.Writer
func (*TestLogWriter) Warning ¶
func (r *TestLogWriter) Warning(args ...any)
func (*TestLogWriter) Warningf ¶
func (r *TestLogWriter) Warningf(format string, args ...any)
func (*TestLogWriter) WithTrace ¶
func (r *TestLogWriter) WithTrace() log.Writer
Click to show internal directories.
Click to hide internal directories.