Documentation ¶
Index ¶
- type CallerHook
- type SeeleLog
- func (p *SeeleLog) Debug(format string, args ...interface{})
- func (p *SeeleLog) Error(format string, args ...interface{})
- func (p *SeeleLog) Fatal(format string, args ...interface{})
- func (p *SeeleLog) Info(format string, args ...interface{})
- func (p *SeeleLog) Panic(format string, args ...interface{})
- func (p *SeeleLog) Warn(format string, args ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CallerHook ¶
type CallerHook struct { }
CallerHook a caller hook of logrus
func (*CallerHook) Fire ¶
func (hook *CallerHook) Fire(entry *logrus.Entry) error
Fire adds a callers field in logger instance
func (*CallerHook) Levels ¶
func (hook *CallerHook) Levels() []logrus.Level
Levels returns support levels
type SeeleLog ¶
type SeeleLog struct {
// contains filtered or unexported fields
}
SeeleLog wrapped log class
func GetLogger ¶
GetLogger get logrus.Logger object accoring to logName each module can have it's own logger
func (*SeeleLog) Error ¶
Error Level. Logs. Used for errors that should definitely be noted. Commonly used for hooks to send errors to an error tracking service.
func (*SeeleLog) Fatal ¶
Fatal Level. Logs and then calls `os.Exit(1)`. It will exit even if the logging level is set to Panic.
func (*SeeleLog) Info ¶
Info Level. General operational entries about what's going on inside the application.
Click to show internal directories.
Click to hide internal directories.