Initial commit

This commit is contained in:
Alex Cabal 2018-12-29 15:21:19 -06:00
commit 28c8a3f0ba
136 changed files with 13350 additions and 0 deletions

13
lib/Logger.php Normal file
View file

@ -0,0 +1,13 @@
<?
class Logger{
public static function WriteGithubWebhookLogEntry(string $requestId, string $text){
$fp = fopen(GITHUB_WEBHOOK_LOG_FILE_PATH, 'a+');
fwrite($fp, gmdate('Y-m-d H:i:s') . "\t" . $requestId . "\t" . $text . "\n");
fclose($fp);
}
public static function WriteErrorLogEntry(string $text){
error_log($text);
}
}
?>