Log
[ class tree: Log ] [ index: Log ] [ all elements ]

Source for file sqlite.php

Documentation is available at sqlite.php

  1. <?php
  2.  
  3. require_once 'Log.php';
  4.  
  5. /* Creating a new database connection. */
  6. $conf = array('filename' => 'log.db''mode' => 0666'persistent' => true);
  7. $logger =Log::factory('sqlite''log_table''ident'$conf);
  8. $logger->log('logging an event'PEAR_LOG_WARNING);
  9.  
  10. /* Using an existing database connection. */
  11. $db = sqlite_open('log.db'0666$error);
  12. $logger =Log::factory('sqlite''log_table''ident'$db);
  13. $logger->log('logging an event'PEAR_LOG_WARNING);
  14. sqlite_close($db);

Documentation generated on Mon, 11 Mar 2019 16:02:24 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.