= nil {
return nil, fmt.Errorf("can't read log file directory: %s", err)
}
logFiles :...continue
}
if t, err := l.timeFromName(f.Name(), prefix, ext); err == nil {
logFiles...= append(logFiles, logInfo{t, f})
continue
}
if t, err := l.timeFromName...(f.Name(), prefix, ext+compressSuffix); err == nil {
logFiles = append(logFiles, logInfo{...))
return logFiles, nil
}
func (l *Logger) prefixAndExt() (prefix, ext string) {
filename :