Documentation ¶
Index ¶
- type ErrCloser
- type Field
- func Any(key string, data any) Field
- func Bool(key string, data bool) Field
- func Error(key string, data error) Field
- func Float64(key string, data float64) Field
- func Int(key string, data int) Field
- func Int64(key string, data int64) Field
- func String(key, data string) Field
- func Uint(key string, data uint) Field
- func Uint64(key string, data uint64) Field
- type Logger
- func (l *Logger) Close() error
- func (l *Logger) DPanic(msg string, fields ...Field)
- func (l *Logger) Debug(msg string, fields ...Field)
- func (l *Logger) Error(msg string, fields ...Field)
- func (l *Logger) Fatal(msg string, fields ...Field)
- func (l *Logger) Info(msg string, fields ...Field)
- func (l *Logger) NewEchoMiddleware(next echo.HandlerFunc) echo.HandlerFunc
- func (l *Logger) NewHTTPMiddleware(next http.Handler) http.Handler
- func (l *Logger) Panic(msg string, fields ...Field)
- func (l *Logger) Sync() error
- func (l *Logger) TraceQueryEnd(ctx context.Context, conn *pgx.Conn, data pgx.TraceQueryEndData)
- func (l *Logger) TraceQueryStart(ctx context.Context, conn *pgx.Conn, data pgx.TraceQueryStartData) context.Context
- func (l *Logger) Warn(msg string, fields ...Field)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
func (*Logger) NewEchoMiddleware ¶
func (l *Logger) NewEchoMiddleware(next echo.HandlerFunc) echo.HandlerFunc
func (*Logger) NewHTTPMiddleware ¶
func (*Logger) Sync ¶
Sync flushes any buffered log entries. It might be a good idea to call Sync before exiting your program. Or defer it in the beginning of your handlers.
func (*Logger) TraceQueryEnd ¶
func (*Logger) TraceQueryStart ¶
Click to show internal directories.
Click to hide internal directories.