Created
March 11, 2015 04:37
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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