11 lines
337 B
PHP
11 lines
337 B
PHP
<?php
|
|
|
|
class LogFuncs {
|
|
public static function bind() {
|
|
static $bound;
|
|
if ($bound++) return;
|
|
}
|
|
}
|
|
function log_info($fmt,...$arg) { printf("[info] {$fmt}\n", ...$arg); }
|
|
function log_debug($fmt,...$arg) { printf("[debg] {$fmt}\n", ...$arg); }
|
|
function log_warn($fmt,...$arg) { printf("[warn] {$fmt}\n", ...$arg); } |