Updated logger to append to file with timestamp.