Google\Cloud\Logger\AppEngineFlexHandler::__construct PHP Method

__construct() public method

public __construct ( integer $level = Logger::INFO, boolean $bubble = true, integer | null $filePermission = 416, boolean $useLocking = false, resource | string | null $stream = null )
$level integer [optional] The minimum logging level at which this handler will be triggered.
$bubble boolean [optional] Whether the messages that are handled can bubble up the stack or not.
$filePermission integer | null [optional] Optional file permissions (default (0640) are only for owner read/write).
$useLocking boolean [optional] Try to lock log file before doing any writes.
$stream resource | string | null [optional]
    public function __construct($level = Logger::INFO, $bubble = true, $filePermission = 0640, $useLocking = false, $stream = null)
    {
        if ($stream === null) {
            $pid = posix_getpid();
            $stream = "file:///var/log/app_engine/app.{$pid}.json";
        }
        parent::__construct($stream, $level, $bubble, $filePermission, $useLocking);
    }