File: file.php

package info (click to toggle)
php-log 1.12.0-1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 460 kB
  • ctags: 605
  • sloc: php: 1,859; xml: 423; sql: 8; makefile: 5
file content (9 lines) | stat: -rw-r--r-- 216 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
<?php

require_once 'Log.php';

$conf = array('mode' => 0600, 'timeFormat' => '%X %x');
$logger = &Log::singleton('file', 'out.log', 'ident', $conf);
for ($i = 0; $i < 10; $i++) {
    $logger->log("Log entry $i");
}