1
0
mirror of https://github.com/monstra-cms/monstra.git synced 2025-08-12 08:04:10 +02:00

Gelato ErrorHandler and Logger improvments

This commit is contained in:
Awilum
2013-01-25 21:49:28 +02:00
parent 0e5e21d5a3
commit c506bbff08
4 changed files with 18 additions and 8 deletions

View File

@@ -81,7 +81,7 @@ class Log
*/
public static function write($message, $type = Log::ERROR)
{
$file = rtrim(Log::$path, '/') . '/' . Log::$types[$type] . '_' . gmdate('Y_m_d') . '.log';
$file = rtrim(Log::$path, '/') . '/' . gmdate('Y_m_d') . '.log';
$message = '[' . gmdate('d-M-Y H:i:s') . '] ' . $message . PHP_EOL;