Best practice for server side error logging?

Regarding server side error logging,
no explicit initialization such as

$conn = new GridConnector($res,“MySQL”);

seems to be required in dhtmlx versions like 4.1.

My question is, then, what is the alternative for the following suggested error logging practice ?

$conn->enable_log(“path”);

Thank you for your assistance in advance.