public function log($entry)
{
$entry = array_merge(["msg" => "", "args" => [], "url" => false, "meta" => [], "mod" => "", "type" => "info", "acl" => "*", "uid" => $this->app->module("auth")->getUser(), "time" => time()], $entry);
$this->app->db->insert("cockpit/history", $entry);
}