简化日志名
This commit is contained in:
parent
9f0793c579
commit
dccf1e0d69
@ -1,7 +1,6 @@
|
|||||||
package config
|
package config
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
|
||||||
"game/common/config"
|
"game/common/config"
|
||||||
"github.com/fox/fox/db"
|
"github.com/fox/fox/db"
|
||||||
"github.com/fox/fox/log"
|
"github.com/fox/fox/log"
|
||||||
@ -14,7 +13,7 @@ type ChatConfig struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func initLog() {
|
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) {
|
func LoadConfig(GitCommit, GitBranch, BuildDate string) {
|
||||||
|
@ -3,7 +3,6 @@ package config
|
|||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"fmt"
|
|
||||||
"game/common/config"
|
"game/common/config"
|
||||||
"github.com/fox/fox/db"
|
"github.com/fox/fox/db"
|
||||||
"github.com/fox/fox/log"
|
"github.com/fox/fox/log"
|
||||||
@ -24,7 +23,7 @@ type GateConfig struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func initLog() {
|
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) {
|
func LoadConfig(GitCommit, GitBranch, BuildDate string) {
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
package config
|
package config
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
|
||||||
"game/common/config"
|
"game/common/config"
|
||||||
"github.com/fox/fox/db"
|
"github.com/fox/fox/db"
|
||||||
"github.com/fox/fox/log"
|
"github.com/fox/fox/log"
|
||||||
@ -14,7 +13,7 @@ type LoginConfig struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func initLog() {
|
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) {
|
func LoadConfig(GitCommit, GitBranch, BuildDate string) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user