source: trunk/workflow/inc/log/examples/sql.php @ 7655

Revision 7655, 220 bytes checked in by douglasz, 11 years ago (diff)

Ticket #3236 - Melhorias de performance no codigo do Expresso.

  • Property svn:executable set to *
Line 
1<?php
2
3require_once 'Log.php';
4
5$conf = array('dsn' => 'pgsql://jon@localhost+unix/logs');
6$logger = &Log::singleton('sql', 'log_table', 'ident', $conf);
7for ($i = 0; $i < 10; ++$i) {
8    $logger->log("Log entry $i");
9}
Note: See TracBrowser for help on using the repository browser.