PATH:
usr
/
share
/
doc
/
cpanel-php81-log-1.13.3
/
examples
<?php require_once 'Log.php'; /* Creating a new database connection. */ $conf = array('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);
[-] syslog.php
[edit]
[+]
..
[-] composite.php
[edit]
[-] win.php
[edit]
[-] pear_error_handler.php
[edit]
[-] observer_mail.php
[edit]
[-] console.php
[edit]
[-] null.php
[edit]
[-] firebug.php
[edit]
[-] file.php
[edit]
[-] error_log.php
[edit]
[-] display.php
[edit]
[-] php_error_handler.php
[edit]
[-] sqlite.php
[edit]
[-] sql.php
[edit]
[-] mail.php
[edit]