Documentation
¶
Index ¶
- Variables
- func Debug(items ...interface{})
- func Debugf(format string, items ...interface{})
- func Disable()
- func Disabled() bool
- func Error(items ...interface{})
- func Errorf(format string, items ...interface{})
- func Fatal(items ...interface{})
- func Fatalf(format string, items ...interface{})
- func Info(items ...interface{})
- func Infof(format string, items ...interface{})
- func InitFromConfig() (err error)
- func Warning(items ...interface{})
- func Warningf(format string, items ...interface{})
- type EchoLogger
- func (e *EchoLogger) Debug(i ...interface{})
- func (e *EchoLogger) Debugf(format string, args ...interface{})
- func (e *EchoLogger) Debugj(j log.JSON)
- func (e *EchoLogger) Error(i ...interface{})
- func (e *EchoLogger) Errorf(format string, args ...interface{})
- func (e *EchoLogger) Errorj(j log.JSON)
- func (e *EchoLogger) Fatal(i ...interface{})
- func (e *EchoLogger) Fatalf(format string, args ...interface{})
- func (e *EchoLogger) Fatalj(j log.JSON)
- func (e *EchoLogger) Info(i ...interface{})
- func (e *EchoLogger) Infof(format string, args ...interface{})
- func (e *EchoLogger) Infoj(j log.JSON)
- func (e *EchoLogger) Level() log.Lvl
- func (e *EchoLogger) Output() io.Writer
- func (e *EchoLogger) Panic(i ...interface{})
- func (e *EchoLogger) Panicf(format string, args ...interface{})
- func (e *EchoLogger) Panicj(j log.JSON)
- func (e *EchoLogger) Prefix() string
- func (e *EchoLogger) Print(i ...interface{})
- func (e *EchoLogger) Printf(format string, args ...interface{})
- func (e *EchoLogger) Printj(j log.JSON)
- func (e *EchoLogger) SetHeader(h string)
- func (e *EchoLogger) SetLevel(v log.Lvl)
- func (e *EchoLogger) SetOutput(w io.Writer)
- func (e *EchoLogger) SetPrefix(p string)
- func (e *EchoLogger) Warn(i ...interface{})
- func (e *EchoLogger) Warnf(format string, args ...interface{})
- func (e *EchoLogger) Warnj(j log.JSON)
- type GormLogger
- func (GormLogger) Error(_ context.Context, msg string, param ...interface{})
- func (GormLogger) Info(_ context.Context, msg string, param ...interface{})
- func (GormLogger) LogMode(_ logger2.LogLevel) logger2.Interface
- func (GormLogger) Trace(_ context.Context, begin time.Time, fc func() (string, int64), err error)
- func (GormLogger) Warn(_ context.Context, msg string, param ...interface{})
- type Level
- type Log
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func InitFromConfig ¶
func InitFromConfig() (err error)
Types ¶
type EchoLogger ¶
type EchoLogger struct {
// contains filtered or unexported fields
}
EchoLogger is a fake logger for echo.
func (*EchoLogger) Debug ¶
func (e *EchoLogger) Debug(i ...interface{})
func (*EchoLogger) Debugf ¶
func (e *EchoLogger) Debugf(format string, args ...interface{})
func (*EchoLogger) Debugj ¶
func (e *EchoLogger) Debugj(j log.JSON)
func (*EchoLogger) Error ¶
func (e *EchoLogger) Error(i ...interface{})
func (*EchoLogger) Errorf ¶
func (e *EchoLogger) Errorf(format string, args ...interface{})
func (*EchoLogger) Errorj ¶
func (e *EchoLogger) Errorj(j log.JSON)
func (*EchoLogger) Fatal ¶
func (e *EchoLogger) Fatal(i ...interface{})
func (*EchoLogger) Fatalf ¶
func (e *EchoLogger) Fatalf(format string, args ...interface{})
func (*EchoLogger) Fatalj ¶
func (e *EchoLogger) Fatalj(j log.JSON)
func (*EchoLogger) Info ¶
func (e *EchoLogger) Info(i ...interface{})
func (*EchoLogger) Infof ¶
func (e *EchoLogger) Infof(format string, args ...interface{})
func (*EchoLogger) Infoj ¶
func (e *EchoLogger) Infoj(j log.JSON)
func (*EchoLogger) Level ¶
func (e *EchoLogger) Level() log.Lvl
func (*EchoLogger) Output ¶
func (e *EchoLogger) Output() io.Writer
func (*EchoLogger) Panic ¶
func (e *EchoLogger) Panic(i ...interface{})
func (*EchoLogger) Panicf ¶
func (e *EchoLogger) Panicf(format string, args ...interface{})
func (*EchoLogger) Panicj ¶
func (e *EchoLogger) Panicj(j log.JSON)
func (*EchoLogger) Prefix ¶
func (e *EchoLogger) Prefix() string
func (*EchoLogger) Print ¶
func (e *EchoLogger) Print(i ...interface{})
func (*EchoLogger) Printf ¶
func (e *EchoLogger) Printf(format string, args ...interface{})
func (*EchoLogger) Printj ¶
func (e *EchoLogger) Printj(j log.JSON)
func (*EchoLogger) SetHeader ¶
func (e *EchoLogger) SetHeader(h string)
func (*EchoLogger) SetLevel ¶
func (e *EchoLogger) SetLevel(v log.Lvl)
func (*EchoLogger) SetOutput ¶
func (e *EchoLogger) SetOutput(w io.Writer)
func (*EchoLogger) SetPrefix ¶
func (e *EchoLogger) SetPrefix(p string)
func (*EchoLogger) Warn ¶
func (e *EchoLogger) Warn(i ...interface{})
func (*EchoLogger) Warnf ¶
func (e *EchoLogger) Warnf(format string, args ...interface{})
func (*EchoLogger) Warnj ¶
func (e *EchoLogger) Warnj(j log.JSON)
type GormLogger ¶
type GormLogger struct{}
func (GormLogger) Error ¶
func (GormLogger) Error(_ context.Context, msg string, param ...interface{})
func (GormLogger) Info ¶
func (GormLogger) Info(_ context.Context, msg string, param ...interface{})
type Level ¶
type Level int
Level for logs.
Debug: debug information. Info: Running information. Warning: notable, but the process wont fail because of this. Error: a process (request) fails because of this. Fatal: multiple process(request) fails because of this.
type Log ¶
type Log struct { Level Level `json:"level"` // The level of this log. Time time.Time `json:"time"` // The time of this log. Message string `json:"message"` // The message of this log. Caller string `json:"caller"` // The function produces this log. }
Log struct contains essential information of a log.
Click to show internal directories.
Click to hide internal directories.