Close implements io.Closer, and closes the current logfile.
()
| 159 | |
| 160 | // Close implements io.Closer, and closes the current logfile. |
| 161 | func (l *RotatingFileStore) Close() error { |
| 162 | l.mu.Lock() |
| 163 | defer l.mu.Unlock() |
| 164 | return l.close() |
| 165 | } |
| 166 | |
| 167 | // close closes the file if it is open. |
| 168 | func (l *RotatingFileStore) close() error { |