catalog error log file, End of month refresh log

- Empty directory at the end of month
- handle log with errors