Documentation
¶
Index ¶
- type LoggerFile
- func (l *LoggerFile) Close()
- func (l *LoggerFile) Error(ctx context.Context, msg string, data ...interface{})
- func (l *LoggerFile) GetLogger() *log.Logger
- func (l *LoggerFile) Info(ctx context.Context, msg string, data ...interface{})
- func (l *LoggerFile) LogMode(level logger.LogLevel) logger.Interface
- func (l *LoggerFile) Printf(format string, v ...interface{})
- func (l *LoggerFile) Println(v ...interface{})
- func (l *LoggerFile) SetDebug()
- func (l *LoggerFile) SetProd()
- func (l *LoggerFile) Trace(ctx context.Context, begin time.Time, fc func() (string, int64), err error)
- func (l *LoggerFile) Warn(ctx context.Context, msg string, data ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LoggerFile ¶
type LoggerFile struct {
// contains filtered or unexported fields
}
func NewLoggerFile ¶
func NewLoggerFile(dir string, filename string) (*LoggerFile, error)
func (*LoggerFile) Close ¶
func (l *LoggerFile) Close()
func (*LoggerFile) Error ¶
func (l *LoggerFile) Error(ctx context.Context, msg string, data ...interface{})
func (*LoggerFile) GetLogger ¶
func (l *LoggerFile) GetLogger() *log.Logger
func (*LoggerFile) Info ¶
func (l *LoggerFile) Info(ctx context.Context, msg string, data ...interface{})
func (*LoggerFile) LogMode ¶
func (l *LoggerFile) LogMode(level logger.LogLevel) logger.Interface
Implementation of the default Logger interface for gorm
func (*LoggerFile) Printf ¶
func (l *LoggerFile) Printf(format string, v ...interface{})
func (*LoggerFile) Println ¶
func (l *LoggerFile) Println(v ...interface{})
func (*LoggerFile) SetDebug ¶
func (l *LoggerFile) SetDebug()
func (*LoggerFile) SetProd ¶
func (l *LoggerFile) SetProd()
Click to show internal directories.
Click to hide internal directories.