Documentation ¶
Index ¶
- Constants
- Variables
- func ErrController(err error, msg string) error
- type Controller
- func (c *Controller) Enabled() bool
- func (c *Controller) Error(err error, msg string, keysAndValues ...interface{})
- func (c *Controller) Info(msg string, keysAndValues ...interface{})
- func (c *Controller) V(level int) logr.InfoLogger
- func (c *Controller) WithName(name string) logr.Logger
- func (c *Controller) WithValues(keysAndValues ...interface{}) logr.Logger
- type Database
- func (c *Database) Error(ctx context.Context, msg string, data ...interface{})
- func (c *Database) Info(ctx context.Context, msg string, data ...interface{})
- func (c *Database) LogMode(level gormlogger.LogLevel) gormlogger.Interface
- func (c *Database) Trace(ctx context.Context, begin time.Time, fc func() (string, int64), err error)
- func (c *Database) Warn(ctx context.Context, msg string, data ...interface{})
- type Format
- type Handler
- type Logger
- type Options
Constants ¶
View Source
const ( JsonLogFormat = iota SyslogLogFormat )
Variables ¶
View Source
var (
ErrControllerCode = "test"
)
Functions ¶
func ErrController ¶ added in v0.2.15
Types ¶
type Controller ¶ added in v0.1.31
type Controller struct {
// contains filtered or unexported fields
}
func (*Controller) Enabled ¶ added in v0.1.31
func (c *Controller) Enabled() bool
func (*Controller) Error ¶ added in v0.1.31
func (c *Controller) Error(err error, msg string, keysAndValues ...interface{})
func (*Controller) Info ¶ added in v0.1.31
func (c *Controller) Info(msg string, keysAndValues ...interface{})
func (*Controller) V ¶ added in v0.1.31
func (c *Controller) V(level int) logr.InfoLogger
func (*Controller) WithName ¶ added in v0.1.31
func (c *Controller) WithName(name string) logr.Logger
func (*Controller) WithValues ¶ added in v0.1.31
func (c *Controller) WithValues(keysAndValues ...interface{}) logr.Logger
type Database ¶ added in v0.2.4
type Database struct {
// contains filtered or unexported fields
}
func (*Database) LogMode ¶ added in v0.2.4
func (c *Database) LogMode(level gormlogger.LogLevel) gormlogger.Interface
type Handler ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
func (*Logger) ControllerLogger ¶ added in v0.1.31
func (*Logger) DatabaseLogger ¶ added in v0.2.4
func (l *Logger) DatabaseLogger() gormlogger.Interface
Click to show internal directories.
Click to hide internal directories.