PHP: Console log edit