Documentation ¶
Index ¶
- type LogBaseRouter
- type LogHandle
- func (m *LogHandle) AddLogRouter(logLevel logenum.Level, router logiface.ILogRouter) *LogHandle
- func (m *LogHandle) DoLogMsgHandler(worker int, request logiface.ILogRequest)
- func (m *LogHandle) InitLogTaskWorkerQueuePool()
- func (m *LogHandle) SendMsgToLogTaskWorkerQueue(request logiface.ILogRequest)
- func (m *LogHandle) StartLogTaskWorkerQueue(worker int, lcQueue chan logiface.ILogRequest)
- type LogRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LogBaseRouter ¶
type LogBaseRouter struct { }
func (*LogBaseRouter) LogExecute ¶
func (m *LogBaseRouter) LogExecute(args logiface.ILogRequest)
type LogHandle ¶
type LogHandle struct { LogApis map[logenum.Level]logiface.ILogRouter LogTaskWorkerQueue []chan logiface.ILogRequest }
func (*LogHandle) AddLogRouter ¶
AddLogRouter 添加日志路由
func (*LogHandle) DoLogMsgHandler ¶
func (m *LogHandle) DoLogMsgHandler(worker int, request logiface.ILogRequest)
DoLogMsgHandler 实际日志处理
func (*LogHandle) InitLogTaskWorkerQueuePool ¶
func (m *LogHandle) InitLogTaskWorkerQueuePool()
InitLogTaskWorkerQueuePool 初始化
func (*LogHandle) SendMsgToLogTaskWorkerQueue ¶
func (m *LogHandle) SendMsgToLogTaskWorkerQueue(request logiface.ILogRequest)
SendMsgToLogTaskWorkerQueue 外部调用发送日志内容给Channel
func (*LogHandle) StartLogTaskWorkerQueue ¶
func (m *LogHandle) StartLogTaskWorkerQueue(worker int, lcQueue chan logiface.ILogRequest)
StartLogTaskWorkerQueue channel消费日志
type LogRequest ¶
type LogRequest struct {
// contains filtered or unexported fields
}
func SetLogRequestData ¶
func SetLogRequestData(data string, level logenum.Level) *LogRequest
func (*LogRequest) GetLogData ¶
func (m *LogRequest) GetLogData() []byte
func (*LogRequest) GetLogDataStr ¶
func (m *LogRequest) GetLogDataStr() string
func (*LogRequest) GetLogId ¶
func (m *LogRequest) GetLogId() uint64
func (*LogRequest) GetLogLevel ¶
func (m *LogRequest) GetLogLevel() logenum.Level
Click to show internal directories.
Click to hide internal directories.