Fixed writing to log file. Removed category and max size