src/InMemoryLogger.php
public function log($level, $message, array $context = [])
    {
        $this->logs[] = [
            'level' => $level,
            'message' => $this->interpolateMessage($message, $context),
            'context' => $context,
        ];
    }
public function log($level, $message, array $context = [])
    {
        $this->logs[] = [
            'level' => $level,
            'message' => $this->interpolateMessage($message, $context),
            'context' => $context,
        ];
    }
Logs with an arbitrary level.

@param string $level   A valid RFC-5424 log level.
@param string $message The base log message.
@param array  $context Any extraneous information that does not fit well in a string.

@return void