Documentation ¶
Index ¶
- func Errorf(format string, v ...interface{})
- func Fatalf(format string, v ...interface{})
- func LogChannel() chan EnhancedLogEntry
- func LogToFile(level, message string)
- func Printf(format string, v ...interface{})
- func Println(v ...interface{})
- func SetEnableFileLog(value bool)
- func WsHandlerWithDependencies(c *gin.Context)
- type Client
- type EnhancedLogEntry
- type LogLevel
- type MyLogAdapter
- func (adapter *MyLogAdapter) Debug(v ...interface{})
- func (adapter *MyLogAdapter) Debugf(format string, v ...interface{})
- func (adapter *MyLogAdapter) Error(v ...interface{})
- func (adapter *MyLogAdapter) Errorf(format string, v ...interface{})
- func (adapter *MyLogAdapter) Info(v ...interface{})
- func (adapter *MyLogAdapter) Infof(format string, v ...interface{})
- func (adapter *MyLogAdapter) Sync() error
- func (adapter *MyLogAdapter) Warn(v ...interface{})
- func (adapter *MyLogAdapter) Warnf(format string, v ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetEnableFileLog ¶
func SetEnableFileLog(value bool)
SetEnableFileLog 设置 enableFileLogGlobal 的值
Types ¶
type EnhancedLogEntry ¶
type MyLogAdapter ¶
func NewMyLogAdapter ¶
func NewMyLogAdapter(level LogLevel, enableFileLog bool) *MyLogAdapter
接收新参数,并设置文件日志路径
func (*MyLogAdapter) Debug ¶
func (adapter *MyLogAdapter) Debug(v ...interface{})
Debug logs a message at the debug level.
func (*MyLogAdapter) Debugf ¶
func (adapter *MyLogAdapter) Debugf(format string, v ...interface{})
Debugf logs a formatted message at the debug level.
func (*MyLogAdapter) Error ¶
func (adapter *MyLogAdapter) Error(v ...interface{})
Error logs a message at the error level.
func (*MyLogAdapter) Errorf ¶
func (adapter *MyLogAdapter) Errorf(format string, v ...interface{})
Errorf logs a formatted message at the error level.
func (*MyLogAdapter) Info ¶
func (adapter *MyLogAdapter) Info(v ...interface{})
Info logs a message at the info level.
func (*MyLogAdapter) Infof ¶
func (adapter *MyLogAdapter) Infof(format string, v ...interface{})
Infof logs a formatted message at the info level.
func (*MyLogAdapter) Warn ¶
func (adapter *MyLogAdapter) Warn(v ...interface{})
Warn logs a message at the warn level.
func (*MyLogAdapter) Warnf ¶
func (adapter *MyLogAdapter) Warnf(format string, v ...interface{})
Warnf logs a formatted message at the warn level.
Click to show internal directories.
Click to hide internal directories.