protected function FileLog::write in File Log 8
Same name and namespace in other branches
- 2.0.x src/Logger/FileLog.php \Drupal\filelog\Logger\FileLog::write()
Write an entry to the logfile.
Parameters
string $entry: The value to write. This should contain no newline characters.
Throws
\Drupal\filelog\FileLogException
1 call to FileLog::write()
- FileLog::log in src/
Logger/ FileLog.php - Logs with an arbitrary level.
File
- src/
Logger/ FileLog.php, line 254
Class
- FileLog
- File-based logger.
Namespace
Drupal\filelog\LoggerCode
protected function write(string $entry) : void {
if (!fwrite($this->logFile, $entry . "\n")) {
throw new FileLogException('The message could not be written to the logfile.');
}
}