Documentation
¶
Index ¶
- func Debugf(format string, args ...interface{})
- func EnableErrorStackTrace()
- func ErrorTracef(format string, args ...interface{})
- func Errorf(format string, args ...interface{})
- func Fatalf(format string, args ...interface{})
- func Infof(format string, args ...interface{})
- func SetLevel(level Level)
- func SetLogPath(logfile string)
- type Level
- type Logger
- func (l *Logger) Debugf(format string, args ...interface{})
- func (l *Logger) EnableErrorStackTrace()
- func (l *Logger) ErrorTracef(format string, args ...interface{})
- func (l *Logger) Errorf(format string, args ...interface{})
- func (l *Logger) Fatalf(format string, args ...interface{})
- func (l *Logger) Infof(format string, args ...interface{})
- func (l *Logger) Output(level Level, msg string)
- func (l *Logger) SetLevel(level Level)
- func (l *Logger) SetLogPath(logfile string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Debugf ¶
func Debugf(format string, args ...interface{})
Debugf records the log with debug level
func EnableErrorStackTrace ¶
func EnableErrorStackTrace()
EnableErrorStackTrace enables stack trace for ErrorTracef method
func ErrorTracef ¶
func ErrorTracef(format string, args ...interface{})
ErrorTracef records the log with stack trace in error level
func Errorf ¶
func Errorf(format string, args ...interface{})
Errorf records the log with error level
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
Logger represents logging object
func (*Logger) EnableErrorStackTrace ¶
func (l *Logger) EnableErrorStackTrace()
EnableErrorStackTrace enables stack trace for ErrorTracef method
func (*Logger) ErrorTracef ¶
ErrorTracef records the log with stack trace in error level
func (*Logger) SetLogPath ¶
SetLogPath sets log file name
Click to show internal directories.
Click to hide internal directories.