public static function sendLog($message)
 {
     return;
     if ($_SERVER["SERVER_NAME"] != "localhost") {
     }
     Yii::import('ext.ElephantIO.Client');
     if (!is_string($message)) {
         $message = NodeLogger::renderJSON($message);
     }
     //$elephant = new Client('http://pukul.in:10001', 'socket.io', 1, false, true, true);
     $elephant = new Client('http://localhost:8000', 'socket.io', 1, false, true, true);
     $elephant->init();
     $elephant->emit('newmessage', date("Y-m-d H:i:s") . "\n" . $message);
     $elephant->close();
     //echo "SEND MESSAGE ".$message;
 }