Documentation ¶
Index ¶
- func PopulatedSql(query string, args ...interface{}) string
- type ISqlLogger
- type SqlLogger
- func (receiver *SqlLogger) Enable() bool
- func (receiver *SqlLogger) Log(ctx context.Context, query string, args ...interface{})
- func (receiver *SqlLogger) LogWithErr(ctx context.Context, err error, hit *bool, query string, args ...interface{})
- func (receiver *SqlLogger) SetLogger(logger logrus.FieldLogger)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PopulatedSql ¶ added in v1.0.9
Types ¶
type ISqlLogger ¶
type ISqlLogger interface { Log(ctx context.Context, query string, args ...interface{}) LogWithErr(ctx context.Context, err error, hit *bool, query string, args ...interface{}) Enable() bool logrus.StdLogger }
func NewSqlLogger ¶
func NewSqlLogger(logger logrus.StdLogger) ISqlLogger
Click to show internal directories.
Click to hide internal directories.