         case "debug": return DEBUG;
         case "info": return INFO;
         case "warning": case "warn": return WARNING;
+        case "error": return ERROR;
         case "off": return OFF;
         }
     }

    }

    /**
     * Log just a stack trace with 'warning' priority.
     */
    public function logStackTrace (error :Error) :void
    {

    protected static var _setLevels :Object = { "": DEBUG }; // global: debug

    /** The outputted names of each level. The last one isn't used, it corresponds with OFF. */
    protected static const LEVEL_NAMES :Array = [ "debug", "INFO", "WARN", "ERROR", false ];
}
}
