예제 #1
0
파일: Dog_Log.php 프로젝트: sinfocol/gwf3
 public static function server(Dog_Server $server, $message, $direction = ' << ')
 {
     echo $server->getTLD() . $direction . $message . PHP_EOL;
     if ($server->isLogging()) {
         $host = GWF_String::remove($server->getHost(), '/', '!');
         GWF_Log::rawLog("dog/{$host}/{$host}", $message);
         GWF_Log::flush();
     }
 }
예제 #2
0
파일: Dog.php 프로젝트: sinfocol/gwf3
 public static function removeServer(Dog_Server $server)
 {
     $tld = $server->getTLD();
     unset(self::$SERVERS[$tld]);
 }