Documentation ¶
Index ¶
- Constants
- Variables
- func ErrController(err error, msg string) error
- type Controller
- func (c *Controller) Enabled(level int) bool
- func (c *Controller) Error(err error, msg string, keysAndValues ...interface{})
- func (c *Controller) Info(level int, msg string, keysAndValues ...interface{})
- func (c *Controller) Init(info logr.RuntimeInfo)
- func (c *Controller) V(level int) *Controller
- func (c *Controller) WithName(name string) logr.LogSink
- func (c *Controller) WithValues(keysAndValues ...interface{}) logr.LogSink
- 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
- type TerminalFormatter
Constants ¶
View Source
const ( JsonLogFormat = iota SyslogLogFormat TerminalLogFormat )
Variables ¶
View Source
var (
ErrControllerCode = "11071"
)
Functions ¶
func ErrController ¶
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
func (*Controller) Enabled ¶
func (c *Controller) Enabled(level int) bool
func (*Controller) Error ¶
func (c *Controller) Error(err error, msg string, keysAndValues ...interface{})
func (*Controller) Info ¶
func (c *Controller) Info(level int, msg string, keysAndValues ...interface{})
func (*Controller) Init ¶
func (c *Controller) Init(info logr.RuntimeInfo)
func (*Controller) V ¶
func (c *Controller) V(level int) *Controller
func (*Controller) WithValues ¶
func (c *Controller) WithValues(keysAndValues ...interface{}) logr.LogSink
type Database ¶
type Database struct {
// contains filtered or unexported fields
}
func (*Database) LogMode ¶
func (c *Database) LogMode(level gormlogger.LogLevel) gormlogger.Interface
type Handler ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
func (*Logger) ControllerLogger ¶
func (*Logger) DatabaseLogger ¶
func (l *Logger) DatabaseLogger() gormlogger.Interface
Click to show internal directories.
Click to hide internal directories.