You are here

protected function SocketHandler::generateDataStream in Lagoon Logs 8

1 call to SocketHandler::generateDataStream()
SocketHandler::write in src/Logger/SocketHandler.php
Connect (if necessary) and write to the socket

File

src/Logger/SocketHandler.php, line 289

Class

SocketHandler
Stores to any socket - uses fsockopen() or pfsockopen().

Namespace

Drupal\lagoon_logs\Logger

Code

protected function generateDataStream($record) {
  return (string) $record['formatted'];
}