Initial commit of new codebase
This commit is contained in:
11
src/global.php
Normal file
11
src/global.php
Normal file
@ -0,0 +1,11 @@
|
||||
<?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); }
|
Reference in New Issue
Block a user