Exemplo n.º 1
0
 /**
  * construct function
  * @param string $logfile filename
  */
 public function __construct($logfile)
 {
     if (empty($logfile)) {
         throw new \Exception("you must set log file name!", 1);
     }
     parent::__construct(new MonologLogger('Slog'));
     $this->useDailyFiles(storage_path('logs') . '/' . $logfile);
 }
Exemplo n.º 2
0
 /**
  * Create a new instance.
  *
  * @param Illuminate\Foundation\Application $app
  */
 public function __construct(Application $app = null)
 {
     parent::__construct($app['log']->getMonolog());
     $this->setApp($app);
 }
Exemplo n.º 3
0
 public function __construct(\Monolog\Logger $monolog, \Illuminate\Contracts\Events\Dispatcher $dispatcher)
 {
     parent::__construct($monolog, $dispatcher);
 }