Perhaps such a solution is to use output buffering with var_dump then str_replace() all the tabs with spaces to format it in the log file.
A solution might be to use output buffering with var_dump, then str_replace() all the tabs with spaces to format it in the log file.