protected function FileLog::stderr in File Log 8
Same name and namespace in other branches
- 2.0.x src/Logger/FileLog.php \Drupal\filelog\Logger\FileLog::stderr()
Open STDERR resource, or use STDERR constant if available.
The STDERR constant is not defined in all PHP environments.
Return value
resource Reference to the STDERR stream resource.
2 calls to FileLog::stderr()
- FileLog::log in src/
Logger/ FileLog.php - Logs with an arbitrary level.
- FileLog::openFile in src/
Logger/ FileLog.php - Open the logfile for writing.
File
- src/
Logger/ FileLog.php, line 239
Class
- FileLog
- File-based logger.
Namespace
Drupal\filelog\LoggerCode
protected function stderr() {
if ($this->stderr === NULL) {
$this->stderr = defined('STDERR') ? STDERR : fopen('php://stderr', 'wb');
}
return $this->stderr;
}