refactored the Logger class, now using dispatcher to log messages and errors to text files in assets dir