1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 01:25:56 +00:00

experimental SQL-based error logger

This commit is contained in:
Andrew Dolgov
2013-04-16 19:41:31 +04:00
parent 4f032700db
commit 889a5f9f19
9 changed files with 177 additions and 5 deletions

24
classes/logger.php Normal file
View File

@@ -0,0 +1,24 @@
<?php
class Logger {
protected $errornames = array(
2 => 'E_WARNING',
8 => 'E_NOTICE',
256 => 'E_USER_ERROR',
512 => 'E_USER_WARNING',
1024 => 'E_USER_NOTICE',
2048 => 'E_STRICT',
4096 => 'E_RECOVERABLE_ERROR',
8192 => 'E_DEPRECATED',
16384 => 'E_USER_DEPRECATED',
32767 => 'E_ALL');
function log_error($errno, $errstr, $file, $line, $context) {
return false;
}
function log($string) {
return false;
}
}
?>