Split log in two files: error and output