Documentation ¶
Index ¶
- func DPanic(format string, args ...interface{})
- func Debug(format string, args ...interface{})
- func Enable(enable bool)
- func Error(format string, args ...interface{})
- func Fatal(format string, args ...interface{})
- func Info(format string, args ...interface{})
- func Panic(format string, args ...interface{})
- func SetLevel(level zapcore.Level)
- func Warn(format string, args ...interface{})
- type PerformanceLogger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PerformanceLogger ¶
type PerformanceLogger struct {
// contains filtered or unexported fields
}
PerformanceLogger logger performance
func GetInstance ¶
func GetInstance() *PerformanceLogger
GetInstance Get the global PerformanceLogger instance
func (*PerformanceLogger) StopAndLog ¶
func (p *PerformanceLogger) StopAndLog(method string, url string)
StopAndLog Stop timer and output log
Click to show internal directories.
Click to hide internal directories.