enable errors logging to a file