public static function write($type, $message, $pretty_print = false) { $message = $pretty_print ? print_r($message, true) : $message; if (Event::listeners('laravel.log')) { Event::fire('laravel.log', array($type, $message)); } $message = static::format($type, $message); File::append(path('storage') . 'logs/' . date('Y-m-d') . '.log', $message); }