Append log/error files separately with pid or given appendix