diff --git a/src/Illuminate/Log/Writer.php b/src/Illuminate/Log/Writer.php index 44ef73a728ce..94b3e2d62f91 100755 --- a/src/Illuminate/Log/Writer.php +++ b/src/Illuminate/Log/Writer.php @@ -239,11 +239,12 @@ public function useDailyFiles($path, $days = 0, $level = 'debug') * * @param string $name * @param string $level + * @param mixed $facility * @return \Psr\Log\LoggerInterface */ - public function useSyslog($name = 'laravel', $level = 'debug') + public function useSyslog($name = 'laravel', $level = 'debug', $facility = LOG_USER) { - return $this->monolog->pushHandler(new SyslogHandler($name, LOG_USER, $level)); + return $this->monolog->pushHandler(new SyslogHandler($name, $facility, $level)); } /**