Path : /proc/2/task/2/cwd/usr/share/doc/cpanel-php81-log-1.13.3/examples/ |
Current File : //proc/2/task/2/cwd/usr/share/doc/cpanel-php81-log-1.13.3/examples/sql.php |
<?php require_once 'Log.php'; $conf = array('dsn' => 'pgsql://jon@localhost+unix/logs'); $logger = &Log::singleton('sql', 'log_table', 'ident', $conf); for ($i = 0; $i < 10; $i++) { $logger->log("Log entry $i"); }