mirror of
https://github.com/standardebooks/web.git
synced 2025-07-13 18:11:52 -04:00
Initial commit
This commit is contained in:
commit
28c8a3f0ba
136 changed files with 13350 additions and 0 deletions
13
lib/Logger.php
Normal file
13
lib/Logger.php
Normal 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);
|
||||
}
|
||||
}
|
||||
?>
|
Loading…
Add table
Add a link
Reference in a new issue