/** * Store a log message -- used by Ledger * * @param string $level * @param string $message * @param string $context (JSON encoded) * @return mixed */ public function store(string $level, string $message, string $context) { return $this->db->insert($this->table, [$this->columns['level'] => $level, $this->columns['message'] => $message, $this->columns['context'] => $context]); }