source:
sandbox/workflow/flumen/inc/log/examples/file.php
@
795
Revision 795, 224 bytes checked in by viani, 15 years ago (diff) | |
---|---|
|
Line | |
---|---|
1 | <?php |
2 | |
3 | require_once '../Log.php'; |
4 | |
5 | $conf = array('mode' => 0600, 'timeFormat' => '%X %x'); |
6 | $logger = &Log::singleton('file', '/tmp/out.log', 'ident', $conf); |
7 | for ($i = 0; $i < 10; $i++) { |
8 | $logger->log("Log entry $i"); |
9 | } |
Note: See TracBrowser
for help on using the repository browser.