source: branches/1.2/workflow/inc/log/examples/sqlite.php @ 1349

Revision 1349, 489 bytes checked in by niltonneto, 15 years ago (diff)

Ticket #561 - Inclusão do módulo Workflow faltante nessa versão.

  • Property svn:executable set to *
Line 
1<?php
2
3require_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);
14sqlite_close($db);
Note: See TracBrowser for help on using the repository browser.