makeOne() public static method

Create an instance of the Logger class
public static makeOne ( array $streams = [] ) : Logger
$streams array
return Logger\Logger
Beispiel #1
0
 /**
  * Instantiate the event runner
  *
  */
 public function __construct()
 {
     $this->configurable();
     // Create an insance of the Logger
     $this->logger = LoggerFactory::makeOne(['info' => $this->config('output_log_file'), 'error' => $this->config('errors_log_file')]);
     // Initializing the invoker
     $this->invoker = new Invoker();
     // Initializing the invoker
     $this->mailer = new Mailer();
 }
Beispiel #2
0
 /**
  * Catch Fatal Errors
  *
  */
 public function __construct()
 {
     $this->configurable();
     $this->logger = LoggerFactory::makeOne(['error' => $this->config('errors_log_file')]);
     $this->mailer = new Mailer();
 }