feat 基础模块拆分为雪花和日志模块
This commit is contained in:
17
module/log.go
Normal file
17
module/log.go
Normal file
@@ -0,0 +1,17 @@
|
||||
package module
|
||||
|
||||
import (
|
||||
"git.hlsq.asia/mmorpg/service-common/config"
|
||||
"git.hlsq.asia/mmorpg/service-common/log"
|
||||
)
|
||||
|
||||
// Log 日志模块
|
||||
type Log struct {
|
||||
DefaultModule
|
||||
Cfg *config.LogConfig
|
||||
}
|
||||
|
||||
func (m *Log) Init() error {
|
||||
log.Init(m.Cfg)
|
||||
return nil
|
||||
}
|
||||
Reference in New Issue
Block a user