public static function init() { jimport('joomla.log.log'); JLog::addLogger(array('text_file' => self::get_log_name(), 'text_file_path' => self::get_dir_path(), 'text_entry_format' => '{DATE} {TIME} {PRIORITY} {MESSAGE}'), JLog::ALL, 'aimysitemap'); self::$ready = true; }