mirror of
https://github.com/gotoeasy/glogcenter.git
synced 2025-09-15 12:58:34 +08:00
默认storeName
This commit is contained in:
parent
6de7d1a8bf
commit
1334a574dc
@ -137,6 +137,9 @@ func ToBytes(data any) []byte {
|
||||
}
|
||||
|
||||
func GeyStoreNameByDate(name string) string {
|
||||
if name == "" {
|
||||
name = "default"
|
||||
}
|
||||
if conf.IsStoreNameAutoAddDate() {
|
||||
return fmt.Sprint(name, "-", time.Now().Format("20060102")) // name-yyyymmdd
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user