write numbered logfile, show errors on console