exception handling, the right way.
logging files named by date