Skip to content

Instantly share code, notes, and snippets.

@motin
Created March 11, 2015 04:37
Show Gist options
  • Save motin/89747ed6ba8241d3a4b5 to your computer and use it in GitHub Desktop.
Save motin/89747ed6ba8241d3a4b5 to your computer and use it in GitHub Desktop.
Workaround to get docker logs output for Yii 1 log routes when running in PHP-FPM
<?php
class StandardStreamsLogRoute extends CLogRoute
{
public function processLogs($logs)
{
foreach ($logs as $log) {
error_log('STDOUT: ' . $log[0]);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment