public static function logGameResponse($game_result) { $log_file = Config::getLogDir() . 'anysdk-pay.' . date('Ymd') . '.log'; $now = time(); $log_string = "{$now}|{$game_result}"; file_put_contents($log_file, $log_string . "\n", FILE_APPEND); }