<?php
#write the error_log file which set by
php.ini (search error_log)
error_log('asdf');
#write message to file
error_log('abc',3,'E:/xampp/apache/logs/asd');
#others
#send mail to admin
error_log("hi~~", 1, "admin@localhost.com
");
#sent to SAPI (CLI
模式下直接输出...)
error_log('asdf',4);