/** * Send a message to a log. If the deposit package is aware of a * a scheduled task, the message will be sent to the task's * log. Otherwise it will be sent to error_log(). * * @param $message string Locale-specific message to be logged */ function _logMessage($message) { if ($this->_task) { $this->_task->addExecutionLogEntry($message, SCHEDULED_TASK_MESSAGE_TYPE_NOTICE); } else { error_log($message); } }