No products in the cart.
Forum Replies Created
Viewing 1 post (of 1 total)
- AuthorPosts
-
nvrm
ParticipantIn Unix CLI, it’s very practical to redirect only errors to a file:
./script 2> errors.log
From your script, either use
var_dump()
or equivalent as usual (both STDOUT and STDERR will receive the output), but to write only in the log file:fwrite(STDERR, "Debug infos\n"); // Write in errors.log^
Then from another shell, for live changes:
tail -f errors.log
or simply
watch cat errors.log
- AuthorPosts
Viewing 1 post (of 1 total)