/**
  * Initializes the logger instance with the log level.
  *
  * @param string  $logFile  The file we want to log to
  * @param integer $logLevel The log level we want to use
  */
 public function __construct($logFile, $logLevel = LogLevel::INFO)
 {
     // pass arguments to parent constructor
     parent::__construct($logLevel);
     // set the file we want to log to
     $this->logFile = $logFile;
 }
 /**
  * Default constructor
  *
  * @param string  $host     The logstash host name/IP address
  * @param integer $port     The logstash UDP port
  * @param integer $logLevel The minimum logging level at which this handler will be triggered
  */
 public function __construct($host = '127.0.0.1', $port = 9514, $logLevel = LogLevel::DEBUG)
 {
     // call parent constructor
     parent::__construct($logLevel);
     // set the JSON formatter
     $this->formatter = new JsonFormatter();
     // initialize the variables
     $this->host = $host;
     $this->port = $port;
 }