Documentation ¶
Index ¶
- Constants
- func CurrentDay(now time.Time) string
- func CurrentDayLogFilename(now time.Time) string
- func CurrentDayLogFilepath(basePath, loggerName string, now time.Time) string
- func DirFileCount(dirPath string) int
- func GetConfigType(confPath string) string
- func IsDirExisted(dirPath string) bool
- func IsFileExisted(filePath string) bool
- func ReadLastLine(filePath string) ([]byte, error)
- func TimeStr(t time.Time) string
- func TimeStrLocal(t time.Time) string
Constants ¶
View Source
const ( TIME_LAYOUT_DEFAULT = "2006-01-02 15:04:05.000" TIME_LAYOUT_SECOND = "2006-01-02-15-04-05" TIME_LAYOUT_DAY = "2006-01-02" TIME_LOCATION = "Asia/Shanghai" )
View Source
const DefaultConfigType = "yaml"
Variables ¶
This section is empty.
Functions ¶
func CurrentDay ¶
func CurrentDayLogFilename ¶
func CurrentDayLogFilepath ¶
CurrentDayLogFilepath basePath/loggerName/day.log
func DirFileCount ¶
func GetConfigType ¶
func IsDirExisted ¶
func IsFileExisted ¶
func ReadLastLine ¶
func TimeStrLocal ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.