简化日志名

This commit is contained in:
liuxiaobo 2025-05-29 17:21:14 +08:00
parent 9f0793c579
commit dccf1e0d69
3 changed files with 3 additions and 6 deletions

View File

@ -1,7 +1,6 @@
package config
import (
"fmt"
"game/common/config"
"github.com/fox/fox/db"
"github.com/fox/fox/log"
@ -14,7 +13,7 @@ type ChatConfig struct {
}
func initLog() {
log.Open(fmt.Sprintf("chat_%v.log", Command.VMod), log.DebugL)
log.Open("chat.log", log.DebugL)
}
func LoadConfig(GitCommit, GitBranch, BuildDate string) {

View File

@ -3,7 +3,6 @@ package config
import (
"context"
"encoding/json"
"fmt"
"game/common/config"
"github.com/fox/fox/db"
"github.com/fox/fox/log"
@ -24,7 +23,7 @@ type GateConfig struct {
}
func initLog() {
log.Open(fmt.Sprintf("gate_%v.log", Command.VMod), log.DebugL)
log.Open("gate.log", log.DebugL)
}
func LoadConfig(GitCommit, GitBranch, BuildDate string) {

View File

@ -1,7 +1,6 @@
package config
import (
"fmt"
"game/common/config"
"github.com/fox/fox/db"
"github.com/fox/fox/log"
@ -14,7 +13,7 @@ type LoginConfig struct {
}
func initLog() {
log.Open(fmt.Sprintf("login_%v.log", Command.VMod), log.DebugL)
log.Open("login.log", log.DebugL)
}
func LoadConfig(GitCommit, GitBranch, BuildDate string) {