Added base error logging

Listing error files and deleting error logs