Airship\Engine\Ledger::log PHP Method

log() public method

Log a message, optionally sign and seal it, if you passed the right keys to the constructor.
public log ( string $level, string $message, array $context = [] ) : mixed
$level string
$message string
$context array
return mixed
    public function log($level, $message, array $context = [])
    {
        $context = $this->defaultContext() + $context;
        return $this->storage->store($level, $message, \json_encode($context));
    }