Documentation
¶
Index ¶
- func Debug(v ...interface{})
- func Debugf(format string, v ...interface{})
- func Error(v ...interface{})
- func Errorf(format string, v ...interface{})
- func Fatal(v ...interface{})
- func Fatalf(format string, v ...interface{})
- func FileLogger(content any, fileName, fileExtension string) error
- func Info(v ...interface{})
- func Infof(format string, v ...interface{})
- func Init()
- func LogRequest(req *http.Request)
- func LogResponse(response *http.Response)
- func StatsLogger(ctx context.Context, statsFunc func() (int64, int64, int64))
- func Warn(v ...interface{})
- func Warnf(format string, v ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Debugf ¶
func Debugf(format string, v ...interface{})
Debugf writes record into os.stdout with log level DEBUG
func Errorf ¶
func Errorf(format string, v ...interface{})
Error writes record into os.stdout with log level ERROR
func Fatal ¶
func Fatal(v ...interface{})
Fatal writes record into os.stdout with log level ERROR and exits
func Fatalf ¶
func Fatalf(format string, v ...interface{})
Fatal writes record into os.stdout with log level ERROR
func FileLogger ¶
CreateFile creates a new file or overwrites an existing one with the specified filename, path, extension,
func Infof ¶
func Infof(format string, v ...interface{})
Info writes record into os.stdout with log level INFO
func LogRequest ¶
func LogResponse ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.