Slide 5
Slide 5 text
Logging
• Use
a
logging
library
(Monolog,
anyone?)
• error_log()
• mod_php
sets
stderr
to
apache
logs:
– file_put_contents('php://stderr',
print_r($foo,
TRUE))
• trigger_error()
&
set_error_handler()
Tail
your
logs:
tail
-‐f
your_log_file_path