PHP logging into a log file command


User the following command for logging in a file;

error_log(“This is an error”, 3, “/var/tmp/error.log”);

or

error_log($logVariable, 3, “/var/tmp/error.log”);

Advertisements