prefixAndExt returns the filename part and extension part from the RotatingFileStore's filename.
()
| 405 | // prefixAndExt returns the filename part and extension part from the RotatingFileStore's |
| 406 | // filename. |
| 407 | func (l *RotatingFileStore) prefixAndExt() (prefix, ext string) { |
| 408 | filename := filepath.Base(l.filename()) |
| 409 | ext = filepath.Ext(filename) |
| 410 | prefix = filename[:len(filename)-len(ext)] + "-" |
| 411 | return prefix, ext |
| 412 | } |
| 413 | |
| 414 | // logInfo is a convenience struct to return the filename and its embedded |
| 415 | // timestamp. |
no test coverage detected