public function log($_channel = "", $_title = "", $_author = "", $_content = "", $_level = ATOM_LEVEL_DEBUG, $_module = "SYSTEM") { //el canal y título por defecto. if (empty($_channel)) { $_channel = ATOM_DEFAULT_CHANNEL; } if (empty($_title)) { $_title = ATOM_GENERAL_TITLE; } if (empty($_author)) { $_author = ATOM_SYSTEM_AUTHOR; } //crea manejador del AtomHopper. $atom = new Atom($this->_url, $_channel); //Crea mensaje. $categories = array($_level, $_module, $this->_instance); $atommsg = new AtomMsg($_title, $_author, $_content, $categories); //envía mensaje. $res = $atom->postMessage($atommsg); if ($res == FALSE) { error_log("error ATOMLOGGER: ERROR ENVIANDO MENSAJE AL ATOM HOOPER " . $this->_url); error_log("error ATOMLOGGER: " . $atommsg->xml); error_log("error ATOMLOGGER: " . $atom->resultmsg); } return $res; }