diff --git a/dev/Debug.php b/dev/Debug.php index 708c55bc6..2107846d0 100644 --- a/dev/Debug.php +++ b/dev/Debug.php @@ -170,6 +170,29 @@ class Debug { } } + /** + * Log to a standard text file output. + * + * @param $message string to output + */ + static function log($message) { + $file = dirname(__FILE__).'/../../debug.log'; + $now = date('r'); + $oldcontent = file_get_contents($file); + $content = $oldcontent . "\n\n== $now ==\n$message\n"; + file_put_contents($file, $content); + } + + private static $warning_pos = 220; + + static function warning($notice) { + echo '
'.$notice.'
'; + echo '