Revision 795,
489 bytes
checked in by viani, 15 years ago
(diff) |
Ticket #488 - Inclusão do módulo workflow no ramo trunk do repositório Expresso.
|
-
Property svn:executable set to
*
|
Line | |
---|
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); |
---|
Note: See
TracBrowser
for help on using the repository browser.