Documentation ¶
Index ¶
- func GetLogger() *zap.SugaredLogger
- type ExporterLogger
- func (logger *ExporterLogger) Debug(message string)
- func (logger *ExporterLogger) Error(message string)
- func (logger *ExporterLogger) Fatal(message string)
- func (logger *ExporterLogger) Info(message string)
- func (logger *ExporterLogger) Print(string)
- func (logger *ExporterLogger) Trace(string)
- func (logger *ExporterLogger) Warning(message string)
- type GormLogger
- func (l GormLogger) Error(_ context.Context, msg string, data ...interface{})
- func (l GormLogger) Info(_ context.Context, msg string, data ...interface{})
- func (l *GormLogger) LogMode(logger.LogLevel) logger.Interface
- func (l GormLogger) Trace(_ context.Context, begin time.Time, fc func() (string, int64), err error)
- func (l GormLogger) Warn(_ context.Context, msg string, data ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetLogger ¶
func GetLogger() *zap.SugaredLogger
GetLogger returns a configured instance of the logger
Types ¶
type ExporterLogger ¶
type ExporterLogger struct {
// contains filtered or unexported fields
}
ExporterLogger wraps sugared logged into an interface compatible for Wails
func GetExporterLogger ¶
func GetExporterLogger(path string) *ExporterLogger
GetExporterLogger returns a configured instance of the logger (used by the UI)
func (*ExporterLogger) Debug ¶
func (logger *ExporterLogger) Debug(message string)
func (*ExporterLogger) Error ¶
func (logger *ExporterLogger) Error(message string)
func (*ExporterLogger) Fatal ¶
func (logger *ExporterLogger) Fatal(message string)
func (*ExporterLogger) Info ¶
func (logger *ExporterLogger) Info(message string)
func (*ExporterLogger) Print ¶
func (logger *ExporterLogger) Print(string)
func (*ExporterLogger) Trace ¶
func (logger *ExporterLogger) Trace(string)
func (*ExporterLogger) Warning ¶
func (logger *ExporterLogger) Warning(message string)
type GormLogger ¶
type GormLogger struct { *zap.SugaredLogger SlowThreshold time.Duration }
GormLogger wraps logger with some gorm specific functionality
func (GormLogger) Error ¶
func (l GormLogger) Error(_ context.Context, msg string, data ...interface{})
Error print error messages.
func (GormLogger) Info ¶
func (l GormLogger) Info(_ context.Context, msg string, data ...interface{})
Info print info.
func (*GormLogger) LogMode ¶
func (l *GormLogger) LogMode(logger.LogLevel) logger.Interface
LogMode log mode.
Click to show internal directories.
Click to hide internal directories.