file.go 468 Bytes
Newer Older
wangp's avatar
wangp committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
package logging

import (
	"fmt"
	"system_pay/setting"

	"time"

)

// getLogFilePath 获取日志文件保存路径
func getLogFilePath() string {
	return fmt.Sprintf("%s" , setting.Conf.LogSetting.LogSavePath)
}

// getLogFileName 获取日志文件的保存名称
func getLogFileName() string {
	return fmt.Sprintf("%s%s.%s",
		setting.Conf.LogSetting.LogSaveName,
		time.Now().Format(setting.Conf.AppSetting.TimeFormat),
		setting.Conf.LogSetting.LogFileExt,
	)
}