Skip to content

Commit

Permalink
Adding facility to Log:writer Syslog (#17789)
Browse files Browse the repository at this point in the history
  • Loading branch information
fernandobandeira authored and taylorotwell committed Feb 6, 2017
1 parent 1c75bf8 commit 5b7f3b5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Illuminate/Log/Writer.php
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}

/**
Expand Down

0 comments on commit 5b7f3b5

Please sign in to comment.