/usr/share/doc/cpanel-php83-log/examples
<?php require_once 'Log.php'; /* Creating a new database connection. */ $conf = ['filename' => 'log.db', 'mode' => 0666, 'persistent' => true]; $logger = Log::factory('sqlite', 'log_table', 'ident', $conf); $logger->log('logging an event', PEAR_LOG_WARNING); /* Using an existing database connection. */ $db = sqlite_open('log.db', 0666, $error); $logger = Log::factory('sqlite', 'log_table', 'ident', $db); $logger->log('logging an event', PEAR_LOG_WARNING); sqlite_close($db);
.
Edit
..
Edit
composite.php
Edit
console.php
Edit
display.php
Edit
error_log.php
Edit
file.php
Edit
firebug.php
Edit
mail.php
Edit
null.php
Edit
observer_mail.php
Edit
pear_error_handler.php
Edit
php_error_handler.php
Edit
sql.php
Edit
sqlite.php
Edit
syslog.php
Edit
win.php
Edit