优化日志

This commit is contained in:
liuxiaobo 2025-05-30 23:19:12 +08:00
parent 2217959df3
commit e84f409431
3 changed files with 12 additions and 3 deletions

View File

@ -14,7 +14,10 @@ type ChatConfig struct {
func InitLog() { func InitLog() {
log.Open("./log/chat.log", log.DebugL) log.Open("./log/chat.log", log.DebugL)
log.Info("\n\n\ninit log success") log.Info("")
log.Info("")
log.Info("")
log.Info("-----init log success-----")
} }
func LoadConfig(GitCommit, GitBranch, BuildDate string) { func LoadConfig(GitCommit, GitBranch, BuildDate string) {

View File

@ -23,7 +23,10 @@ type GateConfig struct {
func InitLog() { func InitLog() {
log.Open("./log/gate.log", log.DebugL) log.Open("./log/gate.log", log.DebugL)
log.Info("\n\n\ninit log success") log.Info("")
log.Info("")
log.Info("")
log.Info("-----init log success-----")
} }
func LoadConfig(GitCommit, GitBranch, BuildDate string) { func LoadConfig(GitCommit, GitBranch, BuildDate string) {

View File

@ -14,7 +14,10 @@ type LoginConfig struct {
func InitLog() { func InitLog() {
log.Open("./log/login.log", log.DebugL) log.Open("./log/login.log", log.DebugL)
log.Info("\n\n\ninit log success") log.Info("")
log.Info("")
log.Info("")
log.Info("-----init log success-----")
} }
func LoadConfig(GitCommit, GitBranch, BuildDate string) { func LoadConfig(GitCommit, GitBranch, BuildDate string) {