123456789101112131415161718192021222324252627282930313233343536373839 |
- package logging
- import (
- "fmt"
- "time"
- )
- func getLogFilePath(rootPath, savePath string) string {
- return fmt.Sprintf("%s%s", rootPath, savePath)
- }
- func getLogFileName(saveName, timeFormat, logFileExt string) string {
- return fmt.Sprintf("%s%s.%s", saveName, time.Now().Format(timeFormat), logFileExt)
- }
|