ISGArchiveDelegate.php
3 years ago
SGBGArchive.php
3 years ago
SGBGArchiveCdr.php
3 years ago
SGBGArchiveHelper.php
3 years ago
SGBGCache.php
3 years ago
SGBGCacheableFile.php
3 years ago
SGBGDirectoryTreeFile.php
3 years ago
SGBGFile.php
3 years ago
SGBGFileHelper.php
3 years ago
SGBGJsonFile.php
3 years ago
SGBGLog.php
3 years ago
SGBGReloader.php
3 years ago
SGBGStateFile.php
3 years ago
SGBGTask.php
3 years ago
SGBGLog.php
25 lines
| 1 | <?php |
| 2 | /* |
| 3 | @ class DirectoryTreeFile |
| 4 | @ version 1.1.0 |
| 5 | @ updated 12/02/2021 |
| 6 | */ |
| 7 | |
| 8 | require_once(__DIR__.'/SGBGCacheableFile.php'); |
| 9 | require_once(__DIR__.'/SGBGTask.php'); |
| 10 | |
| 11 | class SGBGLog extends SGBGCacheableFile |
| 12 | { |
| 13 | |
| 14 | public function save($logData) |
| 15 | { |
| 16 | $this->open('a'); |
| 17 | if($logData) { |
| 18 | $this->write(date("Y-m-d H:i:s", time()).": ".$logData."\n"); |
| 19 | } else { |
| 20 | $this->write($logData."\n"); |
| 21 | } |
| 22 | //flush cache before exit |
| 23 | } |
| 24 | } |
| 25 |