Google\Cloud\Logging\PsrLogger::__construct PHP Method

__construct() public method

public __construct ( Logger $logger, string $messageKey = 'message' )
$logger Logger The logger used to write entries.
$messageKey string The key in the `jsonPayload` used to contain the logged message. **Defaults to** `message`.
    public function __construct(Logger $logger, $messageKey = 'message')
    {
        $this->logger = $logger;
        $this->messageKey = $messageKey;
    }